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.
68 lines
1.7 KiB
C++
68 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 icoFoam;
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 0.5;
|
|
|
|
deltaT 0.005;
|
|
|
|
writeControl timeStep;
|
|
|
|
writeInterval 20;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression off;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable true;
|
|
|
|
functions
|
|
{
|
|
fileUpdate1
|
|
{
|
|
type timeActivatedFileUpdate;
|
|
libs ("libutilityFunctionObjects.so");
|
|
writeControl timeStep;
|
|
writeInterval 1;
|
|
fileToUpdate "$FOAM_CASE/system/fvSolution";
|
|
|
|
timeVsFile
|
|
(
|
|
( -1 "$FOAM_CASE/system/fvSolution.0" )
|
|
( 0.10 "$FOAM_CASE/system/fvSolution.10" )
|
|
( 0.20 "$FOAM_CASE/system/fvSolution.20" )
|
|
( 0.35 "$FOAM_CASE/system/fvSolution.35" )
|
|
);
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|