38 auto* fieldPtr = getObjectPtr<VolFieldType>(fieldName);
44 auto&
field = *fieldPtr;
46 Log <<
" Limiting field " << fieldName <<
":";
53 Log <<
" min(|" <<
gMin(mField) <<
"|)";
56 mField.clamp_min(
min_);
63 Log <<
" max(|" <<
gMax(mField) <<
"|)";
66 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.
bool limitField(const word &fieldName)
Limit a field.
A class for handling words, derived from Foam::string.
scalar max_
Maximum limit.
Type gMax(const FieldField< Field, Type > &f)
limitType withBounds_
Limiting type.