52 const word& fieldName,
58 const VolFieldType* fieldPtr = obr_.findObject<VolFieldType>(fieldName);
72 extents.
add(
C[i] - C0_);
86 Log <<
"field: " << fieldName <<
nl;
88 writeCurrentTime(file());
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_)
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.
Generic GeometricField class.
A bounding box defined in terms of min/max extrema points.
const point & min() const
Minimum describing the bounding box.
const point & max() const
Maximum describing the bounding box.
void reduce()
Parallel reduction of min/max values.
static const boundBox invertedBox
A large inverted boundBox: min/max == +/- ROOTVGREAT.
bool empty() const
Bounding box is inverted, contains no points.
void add(const boundBox &bb)
Extend to include the second box.
scalar threshold_
Threshold value.
void calcFieldExtents(const word &fieldName, const bool calcMag=false)
Main calculation.
tmp< volScalarField > calcMask(const GeometricField< Type, fvPatchField, volMesh > &field) const
Return the field mask.
Computes the magnitude of an input field.
const fvPatch & patch() const
Return patch.
virtual const word & name() const
Return name.
const vectorField & Cf() const
Return face centres.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensionedScalar pos(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.
A non-counting (dummy) refCount.