34 namespace functionObjects
46 >::names[] = {
"magnitude",
"component"};
62 writeCommented(file,
"Time");
66 writeTabbed(file,
"field");
68 writeTabbed(file,
"min");
69 writeTabbed(file,
"location(min)");
73 writeTabbed(file,
"processor");
76 writeTabbed(file,
"max");
77 writeTabbed(file,
"location(max)");
81 writeTabbed(file,
"processor");
88 writeTabbed(file,
"min(" + fieldSet_[fieldi] +
')');
89 writeTabbed(file,
"max(" + fieldSet_[fieldi] +
')');
132 dict.
lookup(
"fields") >> fieldSet_;
153 calcMinMaxFields<scalar>(fieldSet_[fieldi], modeType::cmpt);
154 calcMinMaxFields<vector>(fieldSet_[fieldi], mode_);
155 calcMinMaxFields<sphericalTensor>(fieldSet_[fieldi], mode_);
156 calcMinMaxFields<symmTensor>(fieldSet_[fieldi], mode_);
157 calcMinMaxFields<tensor>(fieldSet_[fieldi], mode_);
virtual bool write()
Write the fieldMinMax.
#define forAll(list, i)
Loop across all elements in list.
virtual bool write()
Write function.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual bool execute()
Execute, currently does nothing.
A list of keyword definitions, which are a keyword followed by any number of values (e...
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
static bool master(const label communicator=0)
Am I the master process.
fieldMinMax(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
Initialise the NamedEnum HashTable from the static list of names.
virtual void writeFileHeader(const label i)
Output file header information.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &)
Read optional controls.
bool read(const char *, int32_t &)
virtual bool read(const dictionary &)
Read the field min/max data.
void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Write header.
Include the header files for all the primitive types that Fields are instantiated for...
A class for handling words, derived from string.
virtual ~fieldMinMax()
Destructor.
static const NamedEnum< modeType, 2 > modeTypeNames_
Mode type names.
word name(const complex &)
Return a string representation of a complex.
defineTypeNameAndDebug(Qdot, 0)
static bool & parRun()
Is this a parallel run?
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
#define Log
Report write to Foam::Info if the local log switch is true.
dimensioned< scalar > mag(const dimensioned< Type > &)
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
functionObject base class for creating, maintaining and writing log files e.g. integrated of averaged...