Go to the documentation of this file.
37 namespace functionObjects
50 { modeType::mdMag,
"magnitude" },
51 { modeType::mdCmpt,
"component" },
135 location_ =
dict.getOrDefault(
"location",
true);
137 mode_ = modeTypeNames_.getOrDefault(
"mode",
dict, modeType::mdMag);
139 fieldSet_.read(
dict);
153 writeFileHeader(file());
155 if (!location_) writeCurrentTime(file());
158 for (
const word& fieldName : fieldSet_.selectionNames())
160 calcMinMaxFields<scalar>(fieldName, mdCmpt);
161 calcMinMaxFields<vector>(fieldName, mode_);
162 calcMinMaxFields<sphericalTensor>(fieldName, mode_);
163 calcMinMaxFields<symmTensor>(fieldName, mode_);
164 calcMinMaxFields<tensor>(fieldName, mode_);
167 if (!location_) file()<<
endl;
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
virtual OFstream & file()
bool read(const char *buf, int32_t &val)
volFieldSelection fieldSet_
Ostream & endl(Ostream &os)
wordHashSet selectionNames() const
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual void writeHeader(Ostream &os, const string &str) const
virtual void writeBreak(Ostream &os) const
virtual bool read(const dictionary &dict)
virtual void writeFileHeader(Ostream &os)
virtual bool updateSelection()
fieldMinMax(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.
static const Enum< modeType > modeTypeNames_
virtual bool read(const dictionary &)
virtual void writeCommented(Ostream &os, const string &str) const
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
static bool & parRun() noexcept
fileName::Type type(const fileName &name, const bool followLink=true)
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,...
Header files for all the primitive types that Fields are instantiated for.
virtual void writeTabbed(Ostream &os, const string &str) const