52 const word& fieldName,
58 const VolFieldType* fieldPtr = obr_.findObject<VolFieldType>(fieldName);
72 extents.
add(
C[i] - C0_);
80 extents.
reset(point::zero);
86 Log <<
"field: " << fieldName <<
nl;
88 writeCurrentTime(file());
90 tmp<volScalarField> tmask = calcMask<Type>(*fieldPtr);
96 boundBox bb(extents(mask, mesh_.C()));
97 Log <<
" internal field: " << bb <<
nl;
100 this->setResult(fieldName +
"_internal_min", bb.min());
101 this->setResult(fieldName +
"_internal_max", bb.max());
105 for (
const label patchi : patchIDs_)
108 boundBox bb(extents(maskp, maskp.patch().Cf()));
109 const word& patchName = maskp.patch().name();
110 Log <<
" patch " << patchName <<
": " << bb <<
nl;
112 this->setResult(fieldName +
"_" + patchName +
"_min", bb.min());
113 this->setResult(fieldName +
"_" + patchName +
"_max", bb.max());
Graphite solid properties.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
tmp< volScalarField > calcMask(const GeometricField< Type, fvPatchField, volMesh > &field) const
Return the field mask.
bool empty() const
Bounding box is inverted, contains no points.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A bounding box defined in terms of min/max extrema points.
Generic GeometricField class.
scalar threshold_
Threshold value.
#define forAll(list, i)
Loop across all elements in list.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar pos(const dimensionedScalar &ds)
void add(const boundBox &bb)
Extend to include the second box.
fvPatchField< scalar > fvPatchScalarField
A class for handling words, derived from Foam::string.
void calcFieldExtents(const word &fieldName, const bool calcMag=false)
Main calculation.
void reduce()
Inplace parallel reduction of min/max values.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
void reset()
Reset to an inverted box.
A class for managing temporary objects.