59 const bool loadFromFiles
72 if (!isA<fvMesh>(obr_))
77 "fieldMinMax::fieldMinMax" 80 "const objectRegistry&, " 84 ) <<
"No fvMesh available, deactivating " << name_
108 dict.
lookup(
"fields") >> fieldSet_;
117 writeHeader(file,
"Field minima and maxima");
118 writeCommented(file,
"Time");
122 writeTabbed(file,
"field");
124 writeTabbed(file,
"min");
125 writeTabbed(file,
"location(min)");
129 writeTabbed(file,
"processor");
132 writeTabbed(file,
"max");
133 writeTabbed(file,
"location(max)");
137 writeTabbed(file,
"processor");
144 writeTabbed(file,
"min(" + fieldSet_[fieldI] +
')');
145 writeTabbed(file,
"max(" + fieldSet_[fieldI] +
')');
177 if (!location_) file()<< obr_.time().value();
178 if (log_)
Info<<
type() <<
" " << name_ <<
" output:" <<
nl;
182 calcMinMaxFields<scalar>(fieldSet_[fieldI], mdCmpt);
183 calcMinMaxFields<vector>(fieldSet_[fieldI], mode_);
184 calcMinMaxFields<sphericalTensor>(fieldSet_[fieldI], mode_);
185 calcMinMaxFields<symmTensor>(fieldSet_[fieldI], mode_);
186 calcMinMaxFields<tensor>(fieldSet_[fieldI], mode_);
189 if (!location_) file()<<
endl;
static bool & parRun()
Is this a parallel run?
virtual void write()
Write the fieldMinMax.
virtual void end()
Execute at the final time-loop, currently does nothing.
virtual void writeFileHeader(const label i)
Output file header information.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.
A list of keyword definitions, which are a keyword followed by any number of values (e...
fieldMinMax(const fieldMinMax &)
Disallow default bitwise copy construct.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define WarningIn(functionName)
Report a warning using Foam::Warning.
virtual void execute()
Execute, currently does nothing.
virtual void read(const dictionary &)
Read the field min/max data.
virtual ~fieldMinMax()
Destructor.
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Initialise the NamedEnum HashTable from the static list of names.
static const NamedEnum< modeType, 2 > modeTypeNames_
Mode type names.
virtual void write()
Write function.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Registry of regIOobjects.
Base class for output file data handling.
bool read(const char *, int32_t &)
Include the header files for all the primitive types that Fields are instantiated for...
defineTypeNameAndDebug(combustionModel, 0)