68 #ifndef Foam_exprTools_expressionEntry_H 69 #define Foam_exprTools_expressionEntry_H 93 static string toExprStr(
const Type& data);
154 const std::string& str,
A list of keyword definitions, which are a keyword followed by a number of values (eg...
expressionEntry() noexcept=default
Default construct.
static void inplaceExpand(std::string &s, const dictionary &dict)
Inplace expand expression with dictionary variables/entries.
TypeNameNoDebug("expressionEntry")
Runtime type information.
static string evaluate(const entry &e)
Generic concatenate tokens to space-separated string.
virtual string toExpr(const entry &e) const
To string. Normally with comma separators.
Convert dictionary entry to a stringified expression.
const dimensionedScalar e
Elementary charge.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
static autoPtr< expressionEntry > New(const word &name)
Return an entry to expression converter.
static expressions::exprString expand(const std::string &str, const dictionary &dict)
Expand expression with dictionary entries.
A class for handling words, derived from Foam::string.
virtual ~expressionEntry()=default
Destructor.
static string toExprStr(const Type &data)
Stringified version of data with comma-separated components. Uses prefix corresponding to the pTraits...
A variant of Foam::string with expansion of dictionary variables into a comma-separated form...
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Macros to ease declaration of run-time selection tables.
declareRunTimeSelectionTable(autoPtr, expressionEntry, empty,(),())
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
An input stream of tokens.
A keyword and a list of tokens is an 'entry'.