Go to the documentation of this file.
35 namespace functionObjects
110 internalField_(true),
129 dict.readIfPresent<
bool>(
"internalField", internalField_);
131 threshold_ =
dict.get<scalar>(
"threshold");
133 dict.readIfPresent<
vector>(
"referencePosition", C0_);
152 if (!isA<processorPolyPatch>(pp) && !isA<emptyPolyPatch>(pp))
154 patchIDs_.insert(patchi);
159 if (!internalField_ && patchIDs_.empty())
162 <<
"No internal field or patches selected - no field extent "
163 <<
"information will be generated" <<
endl;
166 fieldSet_.read(
dict);
183 writeFileHeader(file());
187 for (
const word& fieldName : fieldSet_.selectionNames())
189 calcFieldExtents<scalar>(fieldName,
true);
190 calcFieldExtents<vector>(fieldName);
191 calcFieldExtents<sphericalTensor>(fieldName);
192 calcFieldExtents<symmTensor>(fieldName);
193 calcFieldExtents<tensor>(fieldName);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
tmp< volScalarField > calcMask(const GeometricField< Type, fvPatchField, volMesh > &field) const
A class for handling words, derived from Foam::string.
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
A class for managing temporary objects.
static constexpr const zero Zero
bool read(const char *buf, int32_t &val)
const polyBoundaryMesh & boundaryMesh() const
Ostream & endl(Ostream &os)
volFieldSelection fieldSet_
wordHashSet selectionNames() const
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
void writeHeaderValue(Ostream &os, const string &property, const Type &value) const
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
Abstract base-class for Time/database function objects.
virtual void writeHeader(Ostream &os, const string &str) const
virtual void writeBreak(Ostream &os) const
virtual bool read(const dictionary &dict)
A patch is a list of labels that address the faces in the global face list.
virtual void writeFileHeader(Ostream &os)
virtual bool updateSelection()
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
wordList patchNames(nPatches)
fieldExtents(const word &name, const Time &runTime, const dictionary &dict)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool read(const dictionary &dict)
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
const word & name() const noexcept
virtual bool read(const dictionary &)
virtual void writeCommented(Ostream &os, const string &str) const
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
labelList indices(const wordRe &matcher, const bool useGroups=true) const
fileName::Type type(const fileName &name, const bool followLink=true)
A List of wordRe with additional matching capabilities.
defineTypeNameAndDebug(ObukhovLength, 0)
word name(const expressions::valueTypeCode typeCode)
Base class for writing single files from the function objects.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
#define IOWarningInFunction(ios)
Computes the spatial minimum and maximum extents of an input field.
virtual void writeTabbed(Ostream &os, const string &str) const
dimensionedScalar pos(const dimensionedScalar &ds)