expressionEntryDimensioned.H File Reference

Creates an expression string from various standard dimensioned types. More...

Include dependency graph for expressionEntryDimensioned.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dimensionedScalarEntry
 Create an expression string from a dimensionedScalar as its value. More...
 
struct  dimensionedVectorEntry
 Create an expression string from a dimensionedVector as its value. More...
 
struct  dimensionedTensorEntry
 Create an expression string from a dimensionedTensor as its value. More...
 
struct  dimensionedSymmTensorEntry
 Create an expression string from a dimensionedSymmTensor as its value. More...
 
struct  dimensionedSphericalTensorEntry
 Create an expression string from a dimensionedSphericalTensor as its value. More...
 

Namespaces

 Foam
 Namespace for OpenFOAM.
 
 Foam::exprTools
 Helper methods for creating expressions.
 

Macros

#define declareExpressionEntryType(DimType)
 

Detailed Description

Creates an expression string from various standard dimensioned types.

Original source file expressionEntryDimensioned.H

Source files

Definition in file expressionEntryDimensioned.H.

Macro Definition Documentation

◆ declareExpressionEntryType

#define declareExpressionEntryType (   DimType)
Value:
\
struct DimType##Entry : public exprTools::expressionEntry \
{ \ \
static string evaluate(const entry& e); \
\ \
virtual string toExpr(const entry& e) const \
{ \
return evaluate(e); \
} \
};

Definition at line 48 of file expressionEntryDimensioned.H.

Foam::constant::electromagnetic::e
const dimensionedScalar e
Elementary charge.
Definition: createFields.H:11
Foam::stringOps::evaluate
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)
String evaluation with specified (positive, non-zero) field width.
Definition: stringOpsEvaluate.C:37