Go to the documentation of this file.
38 namespace functionObjects
48 bool 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"))
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
flux(const word &name, const Time &runTime, const dictionary &dict)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const Type & lookupObject(const word &name, const bool recursive=false) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
Intermediate class for handling field expression function objects (e.g. blendingFactor etc....
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
defineTypeNameAndDebug(ObukhovLength, 0)
word name(const expressions::valueTypeCode typeCode)
tmp< surfaceScalarField > flux(const volVectorField &vvf)