mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
This changes simplifies the specification of functionObjects in controlDict and is consistent with the 'libs' option in controlDict to load special solver libraries. Support for the old 'functionObjectLibs' name is supported for backward compatibility.
123 lines
3.2 KiB
C++
123 lines
3.2 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / 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
|
|
libs ("libIOFunctionObjects.so");
|
|
|
|
// Optional mesh region to operate on. Only one partialWrite per
|
|
// region allowed.
|
|
region wallFilmRegion;
|
|
|
|
// Execute upon options:
|
|
// timeStep
|
|
// writeTime
|
|
// adjustableRunTime
|
|
// runTime
|
|
// clockTime
|
|
// cpuTime
|
|
writeControl writeTime;
|
|
|
|
// Objects (fields or lagrangian fields in any of the clouds)
|
|
// to write every writeTime
|
|
objectNames (p positions nParticle);
|
|
|
|
// Write as normal every writeInterval'th writeTime.
|
|
writeInterval 1; // (timeStep, writeTime)
|
|
|
|
// Interval of time (sec) to write down(
|
|
writeInterval 10.5 //(adjustableRunTime, runTime, clockTime, cpuTime)
|
|
}
|
|
|
|
dumpObjects
|
|
{
|
|
// Forcibly write registered objects
|
|
|
|
type writeRegisteredObject;
|
|
|
|
// Where to load it from
|
|
libs ("libIOFunctionObjects.so");
|
|
|
|
// When to write:
|
|
// timeStep (with optional writeInterval)
|
|
// writeTime (with optional writeInterval)
|
|
// adjustableRunTime
|
|
// runTime
|
|
// clockTime
|
|
// cpuTime
|
|
writeControl writeTime;
|
|
|
|
// Write every writeInterval (only valid for timeStemp, writeTime)
|
|
writeInterval 1;
|
|
|
|
// Interval of time (valid for adjustableRunTime, runTime, clockTime,
|
|
// cpuTime)
|
|
writeInterval 10.5;
|
|
|
|
// Objects to write
|
|
objectNames ();
|
|
|
|
|
|
// Is the object written by this function Object alone
|
|
// (default is false)
|
|
//exclusiveWriting true;
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|