This is a more intuitive keyword than "funcName" or "entryName". A
function object's name and corresponding output directory can now be
renamed as follows:
#includeFunc patchAverage
(
name=cylinderT, // <-- was funcName=... or entryName=...
region=fluid,
patch=fluid_to_solid,
field=T
)
Some packaged functions previously relied on a "name" argument that
related to an aspect of the function; e.g., the name of the faceZone
used by the faceZoneFlowRate function. These have been disambiguated.
This has also made them consistent with the preferred input syntax of
the underlying function objects.
Examples of the changed #includeFunc entries are shown below:
#includeFunc faceZoneAverage
(
faceZone=f0, // <-- was name=f0
U
)
#includeFunc faceZoneFlowRate
(
faceZone=f0 // <-- was name=f0
)
#includeFunc populationBalanceSizeDistribution
(
populationBalance=bubbles,
regionType=cellZone,
cellZone=injection, // <-- was name=injection
functionType=volumeDensity,
coordinateType=diameter,
normalise=yes
)
#includeFunc triSurfaceAverage
(
triSurface=mid.obj, // <-- was name=mid.obj
p
)
#includeFunc triSurfaceVolumetricFlowRate
(
triSurface=mid.obj // <-- was name=mid.obj
)
#includeFunc uniform
(
fieldType=volScalarField,
fieldName=alpha, // <-- was name=alpha
dimensions=[0 0 0 0 0 0 0],
value=0.2
)
105 lines
2.3 KiB
C++
105 lines
2.3 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;
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
application foamRun;
|
|
|
|
solver multiphaseEuler;
|
|
|
|
startFrom latestTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 2;
|
|
|
|
deltaT 0.003;
|
|
|
|
writeControl adjustableRunTime;
|
|
|
|
writeInterval 0.1;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression off;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable yes;
|
|
|
|
adjustTimeStep yes;
|
|
|
|
maxCo 1;
|
|
|
|
maxDeltaT 1;
|
|
|
|
functions
|
|
{
|
|
#includeFunc writeObjects(d.particles)
|
|
|
|
#includeFunc populationBalanceSizeDistribution
|
|
(
|
|
name=probabilityDensity.afterBend_1d,
|
|
populationBalance=agglomerates,
|
|
regionType=cellZone,
|
|
cellZone=afterBend_1d,
|
|
functionType=volumeDensity,
|
|
coordinateType=diameter,
|
|
normalise=yes
|
|
)
|
|
|
|
#includeFunc populationBalanceSizeDistribution
|
|
(
|
|
name=probabilityDensity.afterBend_5d,
|
|
populationBalance=agglomerates,
|
|
regionType=cellZone,
|
|
cellZone=afterBend_5d,
|
|
functionType=volumeDensity,
|
|
coordinateType=diameter,
|
|
normalise=yes
|
|
)
|
|
|
|
#includeFunc populationBalanceSizeDistribution
|
|
(
|
|
name=probabilityDensity.afterBend_9d,
|
|
populationBalance=agglomerates,
|
|
regionType=cellZone,
|
|
cellZone=afterBend_9d,
|
|
functionType=volumeDensity,
|
|
coordinateType=diameter,
|
|
normalise=yes
|
|
)
|
|
|
|
#includeFunc populationBalanceSizeDistribution
|
|
(
|
|
name=probabilityDensity.beforeBend_1d,
|
|
populationBalance=agglomerates,
|
|
regionType=cellZone,
|
|
cellZone=beforeBend_1d,
|
|
functionType=volumeDensity,
|
|
coordinateType=diameter,
|
|
normalise=yes
|
|
)
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|