38namespace functionObjects
48bool Foam::functionObjects::flux::calc()
50 bool processed =
false;
52 if (rhoName_ ==
"none")
56 || calcSurFlux<surfaceVectorField>(geometricOneField());
60 || calcVolFlux<volVectorField>(geometricOneField());
66 processed = processed || calcSurFlux<surfaceVectorField>(
rho);
67 processed = processed || calcVolFlux<volVectorField>(
rho);
84 rhoName_(
dict.getOrDefault<
word>(
"rho",
"none"))
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base-class for Time/database function objects.
Intermediate class for handling field expression function objects (e.g. blendingFactor etc....
Computes the flux of an input vector field.
const fvMesh & mesh_
Reference to the fvMesh.
const Type & lookupObject(const word &name, const bool recursive=false) const
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.