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 zeroGradientFvPatchScalarField::typeName
87 tCo->internalFieldRef() =
95 tCo->correctBoundaryConditions();
97 return store(resultName_, tCo);
101 cannotFindObject<surfaceScalarField>(fieldName_);
135 rhoName_ =
dict.lookupOrDefault<
word>(
"rho",
"rho");
Macros for easy insertion into run-time selection tables.
Calculates and outputs the maximum Courant Number.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
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 any number of values (e....
Abstract base-class for Time/database functionObjects.
Calculates and outputs the Courant number as a volScalarField. The field is stored on the mesh databa...
CourantNo(const word &name, const Time &, const dictionary &)
Construct from Time and dictionary.
virtual ~CourantNo()
Destructor.
virtual bool read(const dictionary &)
Read the CourantNo data.
const objectRegistry & obr_
Reference to the region objectRegistry.
virtual bool read(const dictionary &)
Read optional controls.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
A class for managing temporary objects.
A class for handling words, derived from string.
Surface integrate surfaceField creating a volField. Surface sum a surfaceField creating a volField.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
tmp< VolField< Type > > surfaceSum(const SurfaceField< Type > &ssf)
const HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimless
SurfaceField< scalar > surfaceScalarField
const dimensionSet dimDensity
VolField< scalar > volScalarField
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.