38 auto* fieldPtr = getObjectPtr<VolFieldType>(fieldName);
44 auto&
field = *fieldPtr;
46 Log <<
" Limiting field " << fieldName <<
":";
58 auto& mField = tmField.ref();
60 Log <<
" min(|" <<
gMin(mField) <<
"|)";
63 mField.clamp_min(
min_);
75 auto& mField = tmField.ref();
77 Log <<
" max(|" <<
gMax(mField) <<
"|)";
80 mField.clamp_max(
max_);
scalar min_
Minimum limit.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Type gMin(const FieldField< Field, Type > &f)
Generic GeometricField class.
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
bool limitField(const word &fieldName)
Limit a field.
A class for handling words, derived from Foam::string.
scalar max_
Maximum limit.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< scalar >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions and patch type. [Takes current timeN...
Type gMax(const FieldField< Field, Type > &f)
limitType withBounds_
Limiting type.
Do not request registration (bool: false)