36 namespace functionObjects
53 Foam::functionObjects::CourantNo::byRho
55 const tmp<volScalarField::Internal>& Co
69 bool Foam::functionObjects::CourantNo::calc()
71 if (foundObject<surfaceScalarField>(fieldName_))
74 lookupObject<surfaceScalarField>(fieldName_);
76 tmp<volScalarField> tCo
83 mesh_.time().timeName(),
88 zeroGradientFvPatchScalarField::typeName
95 (0.5*mesh_.time().deltaT())
100 tCo->correctBoundaryConditions();
102 return store(resultName_, tCo);
122 setResultName(
"Co",
"phi");
Surface integrate surfaceField creating a volField. Surface sum a surfaceField creating a volField...
A list of keyword definitions, which are a keyword followed by any number of values (e...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &)
Read the CourantNo data.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
bool read(const char *, int32_t &)
A class for handling words, derived from string.
virtual bool read(const dictionary &)
Read the fieldExpression data.
const dimensionSet dimDensity
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual ~CourantNo()
Destructor.
dimensioned< scalar > mag(const dimensioned< Type > &)
tmp< GeometricField< Type, fvPatchField, volMesh > > surfaceSum(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
A class for managing temporary objects.
CourantNo(const word &name, const Time &, const dictionary &)
Construct from Time and dictionary.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
addToRunTimeSelectionTable(functionObject, add, dictionary)