mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: Added caseInfo function object example
This commit is contained in:
@ -0,0 +1,68 @@
|
|||||||
|
caseInfo1
|
||||||
|
{
|
||||||
|
type caseInfo;
|
||||||
|
libs (utilityFunctionObjects);
|
||||||
|
|
||||||
|
writeControl writeTime;
|
||||||
|
|
||||||
|
writeFormat json;
|
||||||
|
|
||||||
|
dictionaries
|
||||||
|
{
|
||||||
|
fvSolution
|
||||||
|
{
|
||||||
|
name "fvSolution";
|
||||||
|
|
||||||
|
// include all entries by default
|
||||||
|
}
|
||||||
|
timeScheme
|
||||||
|
{
|
||||||
|
name "fvSchemes";
|
||||||
|
|
||||||
|
include
|
||||||
|
(
|
||||||
|
"/ddtSchemes/default"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
turbulence
|
||||||
|
{
|
||||||
|
name "turbulenceProperties";
|
||||||
|
|
||||||
|
// include all entries by default
|
||||||
|
}
|
||||||
|
controlDict
|
||||||
|
{
|
||||||
|
path "<system>/controlDict";
|
||||||
|
|
||||||
|
include
|
||||||
|
(
|
||||||
|
"application"
|
||||||
|
"deltaT"
|
||||||
|
"startTime"
|
||||||
|
"endTime"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
field_p
|
||||||
|
{
|
||||||
|
path "0/p"; // note: master proc for parallel
|
||||||
|
|
||||||
|
include
|
||||||
|
(
|
||||||
|
"boundaryField/inlet/type"
|
||||||
|
"boundaryField/outlet/type"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
field_U
|
||||||
|
{
|
||||||
|
path "0/U"; // note: master proc for parallel
|
||||||
|
|
||||||
|
include
|
||||||
|
(
|
||||||
|
"boundaryField/inlet/type"
|
||||||
|
"boundaryField/outlet/type"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
functionObjects (sample1);
|
||||||
|
}
|
||||||
@ -58,6 +58,7 @@ functions
|
|||||||
#include "vtkCloud"
|
#include "vtkCloud"
|
||||||
#include "vtkWrite"
|
#include "vtkWrite"
|
||||||
#include "pressureDifference"
|
#include "pressureDifference"
|
||||||
|
#include "caseInfo"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user