mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: adding hook adjustTimeStep to function objects. The hook is called in
Time::adjustDeltaT(). It allows function objects to manipulate the time step to
dump at adjustable times. The following options are available for output in
function objects: timeStep, outputTime, adjustableTime, runTime, clockTime
and cpuTime.
This commit is contained in:
@ -64,14 +64,24 @@ functions
|
||||
// region allowed.
|
||||
region wallFilmRegion;
|
||||
|
||||
// Execute upon outputTime
|
||||
// Execute upon options:
|
||||
// timeStep
|
||||
// outputTime
|
||||
// adjustableTime
|
||||
// runTime
|
||||
// clockTime
|
||||
// cpuTime
|
||||
outputControl outputTime;
|
||||
|
||||
// Objects (fields or lagrangian fields in any of the clouds)
|
||||
// to write every outputTime
|
||||
objectNames (p positions nParticle);
|
||||
|
||||
// Write as normal every writeInterval'th outputTime.
|
||||
writeInterval 3;
|
||||
outputInterval 1; // (timeStep, outputTime)
|
||||
|
||||
// Interval of time (sec) to write down(
|
||||
writeInterval 10.5 //(adjustableTime, runTime, clockTime, cpuTime)
|
||||
}
|
||||
|
||||
dumpObjects
|
||||
@ -84,9 +94,24 @@ functions
|
||||
// Where to load it from
|
||||
functionObjectLibs ("libIOFunctionObjects.so");
|
||||
|
||||
// Execute upon outputTime
|
||||
// Execute upon outputTime:
|
||||
// timeStep
|
||||
// outputTime
|
||||
// adjustableTime
|
||||
// runTime
|
||||
// clockTime
|
||||
// cpuTime
|
||||
outputControl outputTime;
|
||||
|
||||
// Is the object written by this function Object alone
|
||||
exclusiveWriting true;
|
||||
|
||||
// Interval of time (sec) to write down(
|
||||
writeInterval 10.5 //(adjustableTime, runTime, clockTime, cpuTime)
|
||||
|
||||
// Write as normal every writeInterval'th outputTime.
|
||||
outputInterval 1; // (timeStep, outputTime)
|
||||
|
||||
// Objects to write
|
||||
objectNames ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user