71 #ifndef Foam_functionObjects_fieldValue_H 72 #define Foam_functionObjects_fieldValue_H 83 namespace functionObjects
92 public fvMeshFunctionObject,
154 const word& valueType
163 const word& valueType
172 const bool output =
true 201 virtual
bool write();
212 #include "fieldValueI.H" virtual bool execute()
Execute the function-object operations.
virtual ~fieldValue()=default
Destructor.
dictionary dict_
Construction dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
const wordList & fields() const noexcept
Return the list of field names.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const word & name() const noexcept
Return the name of this functionObject.
const dictionary & dict() const noexcept
Return the reference to the construction dictionary.
TypeName("fieldValue")
Run-time type information.
static autoPtr< fieldValue > New(const word &name, const Time &runTime, const dictionary &dict, const bool output=true)
Return a reference to the selected fieldValue.
void combineFields(Field< Type > &field)
Combine fields from all processor domains into single field.
const word & regionName() const noexcept
Return the region name.
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
fieldValue(const word &name, const Time &runTime, const dictionary &dict, const word &valueType)
Construct from name, Time and dictionary.
A class for handling words, derived from Foam::string.
scalar scaleFactor_
Scaling factor.
wordList fields_
Names of operand fields.
bool writeFields_
Flag to output field values.
word regionName_
Name of region (patch, zone, etc.)
declareRunTimeSelectionTable(autoPtr, fieldValue, runTime,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict))
Intermediate class for handling field value-based function objects.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
A class for managing temporary objects.
Registry of regIOobjects.
virtual const objectRegistry & obr() const
The region or sub-region registry being used.
bool writeFields() const noexcept
Return the output field values flag.
virtual bool write()
Write the function-object results.