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_);
Generic GeometricField class.
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())
@ NO_REGISTER
Do not request registration (bool: false).
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
@ CLAMP_MAX
Clamp maximum value.
@ CLAMP_MIN
Clamp minimum value.
scalar min_
Minimum limit.
scalar max_
Maximum limit.
bool limitField(const word &fieldName)
Limit a field.
limitType withBounds_
Limiting type.
Computes the magnitude of an input field.
ObjectType * getObjectPtr(const word &fieldName) const
Return non-const pointer to the object of the given Type, using a const-cast to have it behave like a...
A class for handling words, derived from Foam::string.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Type gMin(const FieldField< Field, Type > &f)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Type gMax(const FieldField< Field, Type > &f)