Go to the documentation of this file.
93 #ifndef functionObjects_fvExpressionField_H
94 #define functionObjects_fvExpressionField_H
105 namespace functionObjects
112 class fvExpressionField
114 public fvMeshFunctionObject
169 autoPtr<expressions::volumeExprDriver>
driver_;
175 template<
class FieldType>
183 label
loadFields(
const UList<word>& fieldSet_);
185 template<
class GeoField>
189 const GeoField& evaluated,
209 const bool loadFromFiles =
false
235 virtual bool write();
expressions::exprString valueExpr_
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual bool read(const dictionary &dict)
@ opNew
Create/overwrite field (default)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static Ostream & output(Ostream &os, const IntRange< T > &range)
A class for handling words, derived from Foam::string.
virtual ~fvExpressionField()
autoPtr< expressions::volumeExprDriver > driver_
@ opModify
Modify existing field.
bool loadAndStore(const IOobject &io)
bool loadField(const IOobject &io)
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
List< word > wordList
A List of words.
static const Enum< actionType > actionNames_
void operator=(const fvExpressionField &)=delete
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual word fieldName() const
bool performAction(bool doWrite)
bool setField(GeoField &output, const GeoField &evaluated, const boolField &cond)
label loadFields(const UList< word > &fieldSet_)
fvExpressionField(const word &name, const Time &runTime, const dictionary &dict, const bool loadFromFiles=false)
Field< bool > boolField
Specialisation of Field<T> for bool.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const word & name() const noexcept
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
expressions::exprString maskExpr_
Function object that generates or modifies a field based on expressions.