All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dimensionedConstants.H File Reference

Dictionary reading and supplying the dimensioned constants used within OpenFOAM, particularly for thermodynamics. More...

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

Go to the source code of this file.

Classes

class  registerDimensionedConstant
 
class  registerDimensionedConstantWithDefault
 

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define defineDimensionedConstant(Group, Name, Dimensions)
 Defined and register a dimensioned constant. More...
 
#define defineDimensionedConstantWithDefault(Group, Name, DefaultExpr)
 Defined and register a dimensioned constant with default. More...
 

Functions

dictionary & dimensionedConstants ()
 

Detailed Description

Dictionary reading and supplying the dimensioned constants used within OpenFOAM, particularly for thermodynamics.

Original source file dimensionedConstants.H

The values are read from the OpenFOAM etc/controlDict and should be changed to run with a different set of units from the default SI units.

Source files

Definition in file dimensionedConstants.H.

Macro Definition Documentation

◆ defineDimensionedConstant

#define defineDimensionedConstant (   Group,
  Name,
  Dimensions 
)
Value:
registerDimensionedConstant register##Name##DimensionedConstant_ \
( \
#Name, \
Dimensions \
); \
const Foam::dimensionedScalar& Group::Name \
( \
register##Name##DimensionedConstant_ \
);
const char *const group
Group name for atomic constants.

Defined and register a dimensioned constant.

Definition at line 95 of file dimensionedConstants.H.

◆ defineDimensionedConstantWithDefault

#define defineDimensionedConstantWithDefault (   Group,
  Name,
  DefaultExpr 
)
Value:
registerDimensionedConstantWithDefault \
register##Name##DimensionedConstant_ \
( \
#Name, \
DefaultExpr \
); \
\
const Foam::dimensionedScalar& Group::Name \
( \
register##Name##DimensionedConstant_ \
);
const char *const group
Group name for atomic constants.

Defined and register a dimensioned constant with default.

Definition at line 153 of file dimensionedConstants.H.