34 namespace functionObjects
50 bool Foam::functionObjects::MachNo::calc()
54 foundObject<volVectorField>(fieldName_)
58 const fluidThermo& thermo =
61 const volVectorField& U = lookupObject<volVectorField>(fieldName_);
66 mag(U)/
sqrt(thermo.gamma()*thermo.p()/thermo.rho())
87 setResultName(
"Ma",
"U");
virtual ~MachNo()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensionedScalar sqrt(const dimensionedScalar &ds)
GeometricField< vector, fvPatchField, volMesh > volVectorField
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
const word dictName() const
Return the local dictionary name (final part of scoped name)
A class for handling words, derived from string.
MachNo(const word &name, const Time &runTime, const dictionary &dict)
Construct for given objectRegistry and dictionary.
dimensioned< scalar > mag(const dimensioned< Type > &)
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
addToRunTimeSelectionTable(functionObject, add, dictionary)