mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
DOC: elaborate the usage of function objects
ENH: update libs of etc/caseDicts/postProcess items
ENH: ensure destructor=default
ENH: ensure constness
ENH: ensure no 'copy construct' and 'no copy assignment' exist
TUT: add examples of function objects with full set
of settings into a TUT if unavailable
TUT: update pisoFoam/RAS/cavity tutorial in terms of usage
This commit is contained in:
committed by
Andrew Heather
parent
b549116588
commit
a5c6516e23
@ -53,16 +53,40 @@ maxAlphaCo 1;
|
||||
|
||||
maxDeltaT 1;
|
||||
|
||||
|
||||
functions
|
||||
{
|
||||
extractEulerianParticles1
|
||||
{
|
||||
// Mandatory entries
|
||||
type extractEulerianParticles;
|
||||
libs (fieldFunctionObjects);
|
||||
writeControl writeTime;
|
||||
faceZone collector;
|
||||
alpha alpha.water;
|
||||
|
||||
// Optional entries
|
||||
alphaThreshold 0.1;
|
||||
nLocations 20;
|
||||
U U;
|
||||
rho rho;
|
||||
phi phi;
|
||||
//minDiameter 1e-30;
|
||||
//maxDiameter 1e30;
|
||||
|
||||
// Optional (inherited) entries
|
||||
writePrecision 6;
|
||||
writeToFile true;
|
||||
useUserTime false;
|
||||
|
||||
region region0;
|
||||
enabled true;
|
||||
log true;
|
||||
timeStart 0;
|
||||
timeEnd 1000;
|
||||
executeControl timeStep;
|
||||
executeInterval 1;
|
||||
writeControl writeTime;
|
||||
writeInterval -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -74,4 +74,5 @@ functions
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -90,6 +90,39 @@ functions
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
regionSizeDistribution1
|
||||
{
|
||||
// Mandatory entries
|
||||
type regionSizeDistribution;
|
||||
libs (fieldFunctionObjects);
|
||||
field alpha.air;
|
||||
patches (inlet);
|
||||
fields (p U);
|
||||
threshold 0.5;
|
||||
maxDiameter 0.5;
|
||||
nBins 100;
|
||||
setFormat gnuplot;
|
||||
|
||||
// Optional entries
|
||||
minDiameter 0.0;
|
||||
isoPlanes false;
|
||||
|
||||
// Optional (inherited) entries
|
||||
writePrecision 12;
|
||||
writeToFile true;
|
||||
useUserTime true;
|
||||
|
||||
region region0;
|
||||
enabled true;
|
||||
log true;
|
||||
timeStart 0;
|
||||
timeEnd 1000;
|
||||
executeControl timeStep;
|
||||
executeInterval 1;
|
||||
writeControl writeTime;
|
||||
writeInterval -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -54,6 +54,15 @@ maxDeltaT 1;
|
||||
|
||||
functions
|
||||
{
|
||||
add1
|
||||
{
|
||||
type add;
|
||||
libs (fieldFunctionObjects);
|
||||
fields (U.air U.water);
|
||||
result U.total;
|
||||
writeControl writeTime;
|
||||
}
|
||||
|
||||
fieldAverage1
|
||||
{
|
||||
type fieldAverage;
|
||||
|
||||
Reference in New Issue
Block a user