expressionEntryDimensioned.C File Reference
Include dependency graph for expressionEntryDimensioned.C:

Go to the source code of this file.

Namespaces

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

Macros

#define defineExpressionEntryType(DimType)
 

Functions

 addNamedToRunTimeSelectionTable (expressionEntry, dimensionedScalarEntry, empty, dimensionedScalar)
 
 addNamedToRunTimeSelectionTable (expressionEntry, dimensionedVectorEntry, empty, dimensionedVector)
 
 addNamedToRunTimeSelectionTable (expressionEntry, dimensionedTensorEntry, empty, dimensionedTensor)
 
 addNamedToRunTimeSelectionTable (expressionEntry, dimensionedSymmTensorEntry, empty, dimensionedSymmTensor)
 
 addNamedToRunTimeSelectionTable (expressionEntry, dimensionedSphericalTensorEntry, empty, dimensionedSphericalTensor)
 

Detailed Description

Original source file expressionEntryDimensioned.C

Definition in file expressionEntryDimensioned.C.

Macro Definition Documentation

◆ defineExpressionEntryType

#define defineExpressionEntryType (   DimType)
Value:
Foam::string Foam::exprTools::DimType##Entry::evaluate(const entry& e) \
{ \
DimType dt(dynamicCast<const primitiveEntry>(e)); \
return toExprStr<DimType::value_type>(dt.value()); \
}

Definition at line 92 of file expressionEntryDimensioned.C.

Foam::string
A class for handling character strings derived from std::string.
Definition: string.H:76
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