Go to the documentation of this file.
52 const word& fieldName,
58 const VolFieldType* fieldPtr =
59 obr_.findObject<VolFieldType>(fieldName);
68 boundBox extents(boundBox::invertedBox);
73 extents.
add(
C[i] - C0_);
81 extents.
add(point::zero);
87 Log <<
"field: " << fieldName <<
nl;
89 writeCurrentTime(file());
97 boundBox bb(extents(mask, mesh_.C()));
98 Log <<
" internal field: " << bb <<
nl;
101 this->setResult(fieldName +
"_internal_min" , bb.
min());
102 this->setResult(fieldName +
"_internal_max", bb.
max());
106 for (
const label patchi : patchIDs_)
111 Log <<
" patch " << patchName <<
": " << bb <<
nl;
113 this->setResult(fieldName +
"_" + patchName +
"_min", bb.
min());
114 this->setResult(fieldName +
"_" + patchName +
"_max", bb.
max());
void reduce()
Parallel reduction of min/max values.
tmp< volScalarField > calcMask(const GeometricField< Type, fvPatchField, volMesh > &field) const
Return the field mask.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
void calcFieldExtents(const word &fieldName, const bool calcMag=false)
Main calculation.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const point & max() const
Maximum describing the bounding box.
virtual const word & name() const
Return name.
const point & min() const
Minimum describing the bounding box.
#define forAll(list, i)
Loop across all elements in list.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const vectorField & Cf() const
Return face centres.
bool empty() const
Bounding box is inverted, contains no points.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A bounding box defined in terms of min/max extrema points.
const fvPatch & patch() const
Return patch.
Graphite solid properties.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
void add(const boundBox &bb)
Extend to include the second box.
dimensionedScalar pos(const dimensionedScalar &ds)