Go to the documentation of this file.
77 #ifndef functionObjects_fieldValue_H
78 #define functionObjects_fieldValue_H
89 namespace functionObjects
98 public fvMeshFunctionObject,
160 const word& valueType
169 const word& valueType
207 virtual
bool write();
218 #include "fieldValueI.H"
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static Ostream & output(Ostream &os, const IntRange< T > &range)
TypeName("fieldValue")
Run-time type information.
A class for handling words, derived from Foam::string.
virtual bool read(const dictionary &dict)
Read from dictionary.
A class for managing temporary objects.
virtual bool execute()
Execute.
const wordList & fields() const noexcept
Return the list of field names.
scalar scaleFactor_
Scaling factor.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
const word & regionName() const noexcept
Return the region name.
virtual ~fieldValue()=default
Destructor.
List< word > wordList
A List of words.
Registry of regIOobjects.
fieldValue(const word &name, const Time &runTime, const dictionary &dict, const word &valueType)
Construct from Time and dictionary.
dictionary dict_
Construction dictionary.
bool writeFields() const noexcept
Return the output field values flag.
bool writeFields_
Flag to output field values.
word regionName_
Name of region (patch, zone, etc.)
Generic templated field type.
const dictionary & dict() const noexcept
Return the reference to the construction dictionary.
wordList fields_
Names of operand fields.
static autoPtr< fieldValue > New(const word &name, const Time &runTime, const dictionary &dict, const bool output=true)
Return a reference to the selected fieldValue.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
declareRunTimeSelectionTable(autoPtr, fieldValue, runTime,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict))
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const word & name() const noexcept
Return the name of this functionObject.
Intermediate class for handling field value-based function objects.
virtual const objectRegistry & obr() const
The region or sub-region registry being used.
Base class for writing single files from the function objects.
virtual bool write()
Write.
void combineFields(Field< Type > &field)
Combine fields from all processor domains into single field.