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:
Kutalmis Bercin
2020-03-13 18:49:58 +00:00
committed by Andrew Heather
parent b549116588
commit a5c6516e23
264 changed files with 7120 additions and 2830 deletions

View File

@ -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;
}
}

View File

@ -74,4 +74,5 @@ functions
}
}
// ************************************************************************* //

View File

@ -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;
}
}

View File

@ -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;