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.
76 lines
1.7 KiB
C++
76 lines
1.7 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;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
application XXX;
|
|
|
|
startFrom latestTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 0.1;
|
|
|
|
deltaT 1e-05;
|
|
|
|
writeControl timeStep;
|
|
|
|
writeInterval 10;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression off;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable true;
|
|
|
|
functions
|
|
{
|
|
minMax
|
|
{
|
|
// Type of functionObject
|
|
type fieldMinMax;
|
|
|
|
// Where to load it from (if not already in solver)
|
|
libs ("libfieldFunctionObjects.so");
|
|
|
|
// Function object enabled flag
|
|
enabled true;
|
|
|
|
// Log to output (default: false)
|
|
log false;
|
|
|
|
// Write information to file (default: true)
|
|
write true;
|
|
|
|
// Fields to be monitored - runTime modifiable
|
|
fields
|
|
(
|
|
U
|
|
p
|
|
);
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|