71#ifndef Foam_functionObjects_fieldValue_H
72#define Foam_functionObjects_fieldValue_H
154 const word& valueType
163 const word& valueType
172 const bool output =
true
201 virtual
bool write();
212#include "fieldValueI.H"
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Intermediate class for handling field value-based function objects.
const wordList & fields() const noexcept
Return the list of field names.
declareRunTimeSelectionTable(autoPtr, fieldValue, runTime,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict))
scalar scaleFactor_
Scaling factor.
word regionName_
Name of region (patch, zone, etc.).
bool writeFields() const noexcept
Return the output field values flag.
TypeName("fieldValue")
Run-time type information.
dictionary dict_
Construction dictionary.
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
wordList fields_
Names of operand fields.
virtual ~fieldValue()=default
Destructor.
fieldValue(const word &name, const Time &runTime, const dictionary &dict, const word &valueType)
Construct from name, Time and dictionary.
const dictionary & dict() const noexcept
Return the reference to the construction dictionary.
const word & regionName() const noexcept
Return the region name.
bool writeFields_
Flag to output field values.
virtual bool execute()
Execute the function-object operations.
static autoPtr< fieldValue > New(const word &name, const Time &runTime, const dictionary &dict, const bool output=true)
Return a reference to the selected fieldValue.
virtual bool write()
Write the function-object results.
void combineFields(Field< Type > &field)
Combine fields from all processor domains into single field.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
fvMeshFunctionObject(const fvMeshFunctionObject &)=delete
No copy construct.
virtual const objectRegistry & obr() const
The region or sub-region registry being used.
Base class for writing single files from the function objects.
writeFile(const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true, const string &ext=".dat")
Construct from objectRegistry, prefix, fileName.
Registry of regIOobjects.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
List< word > wordList
List of word.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes).
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.