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() =
94 tCo->correctBoundaryConditions();
96 store(resultName_, tCo);
102 cannotFindObject<surfaceScalarField>(fieldName_);
136 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, GeoMesh, PrimitiveField > > New(const word &name, const Internal &, const PtrList< Patch > &, 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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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 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< VolInternalField< Type > > surfaceSum(const SurfaceField< Type > &ssf)
const HashTable< dimensionSet > & dimensions()
Get the table of dimension sets.
const dimensionSet dimless
SurfaceField< scalar > surfaceScalarField
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
const dimensionSet dimDensity
VolField< scalar > volScalarField
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.