The keyword 'select' is now used to specify the cell, face or point set
selection method consistently across all classes requiring this functionality.
'select' replaces the inconsistently named 'regionType' and 'selectionMode'
keywords used previously but backwards-compatibility is provided for user
convenience. All configuration files and tutorials have been updated.
Examples of 'select' from the tutorial cases:
functionObjects:
cellZoneAverage
{
type volFieldValue;
libs ("libfieldFunctionObjects.so");
writeControl writeTime;
writeInterval 1;
fields (p);
select cellZone;
cellZone injection;
operation volAverage;
writeFields false;
}
#includeFunc populationBalanceSizeDistribution
(
name=numberDensity,
populationBalance=aggregates,
select=cellZone,
cellZone=outlet,
functionType=numberDensity,
coordinateType=projectedAreaDiameter,
allCoordinates=yes,
normalise=yes,
logTransform=yes
)
fvModel:
cylinderHeat
{
type heatSource;
select all;
q 5e7;
}
fvConstraint:
momentumForce
{
type meanVelocityForce;
select all;
Ubar (0.1335 0 0);
}
87 lines
1.7 KiB
C++
87 lines
1.7 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class dictionary;
|
|
location "system";
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
application foamRun;
|
|
|
|
solver multiphaseEuler;
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 10;
|
|
|
|
deltaT 1e-4;
|
|
|
|
writeControl adjustableRunTime;
|
|
|
|
writeInterval 1;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 9;
|
|
|
|
writeCompression off;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 8;
|
|
|
|
runTimeModifiable yes;
|
|
|
|
adjustTimeStep yes;
|
|
|
|
maxCo 0.8;
|
|
|
|
maxDeltaT 1e-3;
|
|
|
|
functions
|
|
{
|
|
#includeFunc graphCell
|
|
(
|
|
name=graph,
|
|
start=(0 0 1e-3),
|
|
end=(0.44 0 1e-3),
|
|
fields=(TiCl4.vapour O2.vapour Cl2.vapour alpha.particles)
|
|
)
|
|
|
|
#includeFunc populationBalanceSizeDistribution
|
|
(
|
|
name=numberDensity,
|
|
populationBalance=aggregates,
|
|
select=cellZone,
|
|
cellZone=outlet,
|
|
functionType=numberDensity,
|
|
coordinateType=projectedAreaDiameter,
|
|
allCoordinates=yes,
|
|
normalise=yes,
|
|
logTransform=yes
|
|
)
|
|
|
|
#includeFunc writeObjects
|
|
(
|
|
d.particles,
|
|
phaseTransfer:dmidtf.TiO2.particlesAndVapor
|
|
)
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|