38 int main(
int argc,
char *argv[])
47 scalar fullCycle = 360.0;
52 while (runTime.userTimeValue() > ca0)
58 while (
mag(runTime.userTimeValue() - ca0) > eps)
60 scalar t0 = runTime.userTimeToTime(ca0 - runTime.userTimeValue());
61 runTime.setDeltaT(t0);
63 Info<<
"CA = " << runTime.userTimeValue() <<
endl;
67 scalar Vmax =
sum(
mesh.V().field());
69 while (
mag(runTime.userTimeValue()-ca1) > eps)
71 scalar t1 = runTime.userTimeToTime(ca1 - runTime.userTimeValue());
72 runTime.setDeltaT(t1);
74 Info<<
"CA = " << runTime.userTimeValue() <<
endl;
78 scalar Vmin =
sum(
mesh.V().field());
80 Info<<
"\nVmax = " << Vmax;
82 Info<<
"Compression ratio Vmax/Vmin = " << Vmax/Vmin <<
endl;
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
dimensioned< scalar > mag(const dimensioned< Type > &)