52 #ifndef expressions_fieldExprDriver_H 53 #define expressions_fieldExprDriver_H 75 public parsing::genericRagelLemonDriver,
76 public expressions::exprDriver
122 virtual label
size()
const 137 using genericRagelLemonDriver::content;
141 virtual unsigned parse 143 const std::string& expr,
145 size_t len = std::string::npos
virtual label pointSize() const
The point field size for the expression.
ClassName("fieldExpr::driver")
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual ~parseDriver()=default
Destructor.
label size_
The field size.
tmp< scalarField > field_rand(label seed=0, bool gaussian=false) const
A uniform random field.
virtual label size() const
The natural field size for the expression.
dimensionedScalar pos(const dimensionedScalar &ds)
tmp< scalarField > field_randGaussian(label seed=0) const
A Gaussian random field.
Generic templated field type.
A class for handling words, derived from Foam::string.
void operator=(const parseDriver &)=delete
const exprResult & result() const noexcept
Const access to expression result.
void setResult(Field< Type > *ptr, bool pointVal=false)
Set result.
Specialisations of Field<T> for scalar, vector and tensor.
Driver for generic primitive field expressions.
void setResult(Field< Type > *, bool wantPointData=false)
Set result field, taking ownership of the pointer.
virtual unsigned parse(const std::string &expr, size_t pos=0, size_t len=std::string::npos)
Execute the parser.
const dictionary & dict() const noexcept
The dictionary with all input data/specification.
tmp< Field< Type > > getField(const word &fieldName) const
Return named field (variable) if available.
A class for managing temporary objects.
parseDriver(const parseDriver &)=delete