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
)
41 lines
1.0 KiB
Bash
Executable File
41 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
runApplication blockMesh
|
|
runApplication extrudeMesh
|
|
runApplication topoSet
|
|
runApplication decomposePar
|
|
|
|
runParallel $(getApplication)
|
|
|
|
runApplication reconstructPar -latestTime
|
|
|
|
runApplication foamPostProcess -latestTime -func "
|
|
graphCell
|
|
(
|
|
name=graph,
|
|
start=(3.4901 0 0),
|
|
end=(3.4901 0.0096 0),
|
|
fields=(alpha.gas T.liquid T.gas d.gas)
|
|
)"
|
|
runApplication -append foamPostProcess -latestTime -func "
|
|
patchSurface
|
|
(
|
|
name=patchWallBoilingProperties,
|
|
patch=wall,
|
|
surfaceFormat=raw,
|
|
interpolate=false,
|
|
fields=(dDeparture.liquid fDeparture.liquid nucleationSiteDensity.liquid wetFraction.liquid qQuenching.liquid qEvaporative.liquid)
|
|
)"
|
|
|
|
if ! isTest "$@"
|
|
then
|
|
./validation/createGraphs
|
|
./validation/createWallBoilingPropertiesGraphs
|
|
fi
|
|
|
|
#------------------------------------------------------------------------------
|