mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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.
121 lines
3.1 KiB
C++
121 lines
3.1 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: 2.0.0 |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
// So we get a decent warning if we have multiple functionObject entries
|
|
// with the same name.
|
|
#inputMode error;
|
|
|
|
application icoFoam;
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 0.5;
|
|
|
|
deltaT 0.005;
|
|
|
|
writeControl timeStep;
|
|
|
|
writeInterval 20;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression uncompressed;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable yes;
|
|
|
|
functions
|
|
{
|
|
partialWrite
|
|
{
|
|
// Write some registered objects more often than others.
|
|
// Above writeControl determines most frequent dump.
|
|
|
|
type partialWrite;
|
|
|
|
// Where to load it from
|
|
functionObjectLibs ("libIOFunctionObjects.so");
|
|
|
|
// Optional mesh region to operate on. Only one partialWrite per
|
|
// region allowed.
|
|
region wallFilmRegion;
|
|
|
|
// 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.
|
|
outputInterval 1; // (timeStep, outputTime)
|
|
|
|
// Interval of time (sec) to write down(
|
|
writeInterval 10.5 //(adjustableTime, runTime, clockTime, cpuTime)
|
|
}
|
|
|
|
dumpObjects
|
|
{
|
|
// Forcibly write registered objects. E.g. fields that have been
|
|
// created with NO_WRITE.
|
|
|
|
type writeRegisteredObject;
|
|
|
|
// Where to load it from
|
|
functionObjectLibs ("libIOFunctionObjects.so");
|
|
|
|
// 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 ();
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|