expressionEntryVectors.H File Reference

Creates an expression string from common VectorSpace types. More...

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

Go to the source code of this file.

Classes

struct  vectorEntry
 Create an expression string from a vector. More...
 
struct  tensorEntry
 Create an expression string from a tensor. More...
 
struct  symmTensorEntry
 Create an expression string from a symmTensor. More...
 
struct  sphericalTensorEntry
 Create an expression string from a sphericalTensor. More...
 

Namespaces

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

Macros

#define declareExpressionEntryType(Type)
 

Detailed Description

Creates an expression string from common VectorSpace types.

Original source file expressionEntryVectors.H

Source files

Definition in file expressionEntryVectors.H.

Macro Definition Documentation

◆ declareExpressionEntryType

#define declareExpressionEntryType (   Type)
Value:
\
struct Type##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 expressionEntryVectors.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