11 :
Base(sim->getConfiguration(), mpcFluid_),
12 simulation(sim), mpcFluid(mpcFluid_),
13 dumbbellBondLengthHistogram(
"dumbbellBondLengthHistogram", sim->getConfiguration()),
14 dumbbellBondLengthSquaredHistogram(
"dumbbellBondLengthSquaredHistogram", sim->getConfiguration()),
16 dumbbellBondXHistogram(
"dumbbellBondXHistogram", sim->getConfiguration()),
17 dumbbellBondYHistogram(
"dumbbellBondYHistogram", sim->getConfiguration()),
18 dumbbellBondZHistogram(
"dumbbellBondZHistogram", sim->getConfiguration()),
20 dumbbellBondXXHistogram(
"dumbbellBondXXHistogram", sim->getConfiguration()),
21 dumbbellBondYYHistogram(
"dumbbellBondYYHistogram", sim->getConfiguration()),
22 dumbbellBondZZHistogram(
"dumbbellBondZZHistogram", sim->getConfiguration()),
24 dumbbellBondXYHistogram(
"dumbbellBondXYHistogram", sim->getConfiguration()),
26 dumbbellBondAngleWithFlowDirectionHistogram(
"dumbbellBondAngleWithFlowDirectionHistogram", sim->getConfiguration()),
27 dumbbellBondXYAngleWithFlowDirectionHistogram(
"dumbbellBondXYAngleWithFlowDirectionHistogram", sim->getConfiguration())
50 dumbbellBondXHistogram.
fill(R.
getX());
51 dumbbellBondYHistogram.
fill(R.
getY());
52 dumbbellBondZHistogram.
fill(R.
getZ());
58 dumbbellBondXXHistogram.
fill(bondXX);
59 dumbbellBondYYHistogram.
fill(bondYY);
60 dumbbellBondZZHistogram.
fill(bondZZ);
64 averageBondXX += bondXX;
65 averageBondYY += bondYY;
66 averageBondZZ += bondZZ;
69 dumbbellBondAngleWithFlowDirectionHistogram.
fill(R.
getAngle(flowDirection));
70 dumbbellBondXYAngleWithFlowDirectionHistogram.
fill(R_xy.
getAngle(flowDirection));
74 averageBondXX /= dumbbellCount;
75 averageBondYY /= dumbbellCount;
76 averageBondZZ /= dumbbellCount;
85 dumbbellBondLengthHistogram.
save(rundir+
"/dumbbellBondLengthHistogram.data");
86 dumbbellBondLengthSquaredHistogram.
save(rundir+
"/dumbbellBondLengthSquaredHistogram.data");
88 dumbbellBondXHistogram.
save(rundir+
"/dumbbellBondXHistogram.data");
89 dumbbellBondYHistogram.
save(rundir+
"/dumbbellBondYHistogram.data");
90 dumbbellBondZHistogram.
save(rundir+
"/dumbbellBondZHistogram.data");
92 dumbbellBondXXHistogram.
save(rundir+
"/dumbbellBondXXHistogram.data");
93 dumbbellBondYYHistogram.
save(rundir+
"/dumbbellBondYYHistogram.data");
94 dumbbellBondZZHistogram.
save(rundir+
"/dumbbellBondZZHistogram.data");
96 dumbbellBondXYHistogram.
save(rundir+
"/dumbbellBondXYHistogram.data");
98 dumbbellAverageBondXXVSTime.
save(rundir+
"/dumbbellAverageBondXXVSTime.data",
false);
99 dumbbellAverageBondYYVSTime.
save(rundir+
"/dumbbellAverageBondYYVSTime.data",
false);
100 dumbbellAverageBondZZVSTime.
save(rundir+
"/dumbbellAverageBondZZVSTime.data",
false);
102 dumbbellBondAngleWithFlowDirectionHistogram.
save(rundir+
"/dumbbellBondAngleWithFlowDirectionHistogram.data");
103 dumbbellBondXYAngleWithFlowDirectionHistogram.
save(rundir+
"/dumbbellBondXYAngleWithFlowDirectionHistogram.data");