STYLE: changes to Time and TimeState

- update TimeState access methods

- use writeTime() instead of old method name outputTime()

- use deltaTValue() instead of deltaT().value()
  to avoids pointless construct of intermediate
This commit is contained in:
Mark Olesen
2023-06-28 10:11:01 +02:00
parent 7a857b318a
commit d5a0eaeeee
56 changed files with 218 additions and 185 deletions

View File

@ -106,7 +106,7 @@ int main(int argc, char *argv[])
vector r0(x, y, 0);
fsPatchU[pointI] = (scale - 1.0)*r0/runTime.deltaT().value();
fsPatchU[pointI] = (scale - 1.0)*r0/runTime.deltaTValue();
}
fixedValuePointPatchVectorField& fsPatchPointMeshU =

View File

@ -54,7 +54,7 @@ area
libs (utilityFunctionObjects);
// Write at same frequency as fields
writeControl outputTime;
writeControl writeTime;
writeInterval 1;
fields (U p hf_film );

View File

@ -100,7 +100,7 @@ int main(int argc, char *argv[])
vector
(
0,
a0*::cos(M_PI*x/L)/runTime.deltaT().value(),
a0*::cos(M_PI*x/L)/runTime.deltaTValue(),
0
);
}

View File

@ -77,7 +77,7 @@ functions
libs (fieldFunctionObjects);
field T;
writeControl outputTime;
writeControl writeTime;
writeInterval 1;
htcModel fixedReferenceTemperature;
patches (bottom);
@ -90,7 +90,7 @@ functions
libs (fieldFunctionObjects);
patches (bottom);
writeControl outputTime;
writeControl writeTime;
writeInterval 1;
}
}