mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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 =
|
||||
|
||||
@ -54,7 +54,7 @@ area
|
||||
libs (utilityFunctionObjects);
|
||||
|
||||
// Write at same frequency as fields
|
||||
writeControl outputTime;
|
||||
writeControl writeTime;
|
||||
writeInterval 1;
|
||||
|
||||
fields (U p hf_film );
|
||||
|
||||
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user