Macros for instantiating reactions on given thermo packages.
More...
Go to the source code of this file.
|
#define | defineReaction(nullArg, ThermoPhysics) |
|
#define | makeReaction(ReactionType, ReactionRate, ThermoPhysics) |
|
#define | makeGeneralReaction(ReactionType, ReactionRate, ThermoPhysics) |
|
#define | makeIReactions(ReactionRate, ThermoPhysics) |
|
#define | makeIRReactions(ReactionRate, ThermoPhysics) |
|
#define | makeIRNReactions(ReactionRate, ThermoPhysics) |
|
#define | makeITemplate1Reactions(ReactionRate, Param, ThermoPhysics) |
|
#define | makeIRTemplate1Reactions(ReactionRate, Param, ThermoPhysics) |
|
#define | makeITemplate2Reactions(ReactionRate, Param1, Param2, ThermoPhysics) |
|
#define | makeIRTemplate2Reactions(ReactionRate, Param1, Param2, ThermoPhysics) |
|
Macros for instantiating reactions on given thermo packages.
Original source file makeReaction.H
InClass Foam::makeReaction
Definition in file makeReaction.H.
◆ defineReaction
#define defineReaction |
( |
|
nullArg, |
|
|
|
ThermoPhysics |
|
) |
| |
Value: \
typedef Reaction<ThermoPhysics> Reaction##ThermoPhysics;
\
defineTemplateRunTimeSelectionTable \
( \
Reaction##ThermoPhysics, \
objectRegistry \
)
#define defineTemplateTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information for templates, useful.
#define defineTemplateRunTimeSelectionTable(baseType, argNames)
Define run-time selection table for template classes.
Definition at line 45 of file makeReaction.H.
◆ makeReaction
#define makeReaction |
( |
|
ReactionType, |
|
|
|
ReactionRate, |
|
|
|
ThermoPhysics |
|
) |
| |
Value: \
typedef Reaction<ThermoPhysics> Reaction##ThermoPhysics; \
typedef ReactionType<ThermoPhysics, ReactionRate> \
ReactionType##ThermoPhysics##ReactionRate; \
\
template<> \
const word ReactionType##ThermoPhysics##ReactionRate::typeName \
( \
ReactionType::typeName_() \
); \
\
addToRunTimeSelectionTable \
( \
Reaction##ThermoPhysics, \
ReactionType##ThermoPhysics##ReactionRate, \
dictionary \
)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Definition at line 59 of file makeReaction.H.
◆ makeGeneralReaction
#define makeGeneralReaction |
( |
|
ReactionType, |
|
|
|
ReactionRate, |
|
|
|
ThermoPhysics |
|
) |
| |
Value: \
typedef Reaction<ThermoPhysics> Reaction##ThermoPhysics; \
typedef ReactionType<ThermoPhysics, ReactionRate> \
ReactionType##ThermoPhysics##ReactionRate; \
\
template<> \
const word ReactionType##ThermoPhysics##ReactionRate::typeName \
( \
ReactionType::typeName_() \
); \
\
addToRunTimeSelectionTable \
( \
Reaction##ThermoPhysics, \
ReactionType##ThermoPhysics##ReactionRate, \
objectRegistry \
)
Definition at line 80 of file makeReaction.H.
◆ makeIReactions
#define makeIReactions |
( |
|
ReactionRate, |
|
|
|
ThermoPhysics |
|
) |
| |
Value: \
makeReaction(IrreversibleReaction, ReactionRate, ThermoPhysics)
Definition at line 101 of file makeReaction.H.
◆ makeIRReactions
#define makeIRReactions |
( |
|
ReactionRate, |
|
|
|
ThermoPhysics |
|
) |
| |
Value: \
makeIReactions(ReactionRate, ThermoPhysics); \
makeReaction(ReversibleReaction, ReactionRate, ThermoPhysics)
Definition at line 106 of file makeReaction.H.
◆ makeIRNReactions
#define makeIRNReactions |
( |
|
ReactionRate, |
|
|
|
ThermoPhysics |
|
) |
| |
Value: \
makeIRReactions(ReactionRate, ThermoPhysics); \
makeReaction(NonEquilibriumReversibleReaction, ReactionRate, ThermoPhysics)
Definition at line 112 of file makeReaction.H.
◆ makeITemplate1Reactions
#define makeITemplate1Reactions |
( |
|
ReactionRate, |
|
|
|
Param, |
|
|
|
ThermoPhysics |
|
) |
| |
Value: \
typedef ReactionRate<Param> ReactionRate##Param; \
\
makeReaction \
( \
IrreversibleReaction, \
ReactionRate##Param, \
ThermoPhysics \
)
Definition at line 118 of file makeReaction.H.
◆ makeIRTemplate1Reactions
#define makeIRTemplate1Reactions |
( |
|
ReactionRate, |
|
|
|
Param, |
|
|
|
ThermoPhysics |
|
) |
| |
Value: \
makeITemplate1Reactions(ReactionRate, Param, ThermoPhysics); \
\
makeReaction \
( \
ReversibleReaction, \
ReactionRate##Param, \
ThermoPhysics \
)
Definition at line 130 of file makeReaction.H.
◆ makeITemplate2Reactions
#define makeITemplate2Reactions |
( |
|
ReactionRate, |
|
|
|
Param1, |
|
|
|
Param2, |
|
|
|
ThermoPhysics |
|
) |
| |
Value: \
typedef ReactionRate<Param1, Param2> ReactionRate##Param1##Param2; \
\
makeReaction \
( \
IrreversibleReaction, \
ReactionRate##Param1##Param2, \
ThermoPhysics \
)
Definition at line 142 of file makeReaction.H.
◆ makeIRTemplate2Reactions
#define makeIRTemplate2Reactions |
( |
|
ReactionRate, |
|
|
|
Param1, |
|
|
|
Param2, |
|
|
|
ThermoPhysics |
|
) |
| |
Value: \
makeITemplate2Reactions(ReactionRate, Param1, Param2, ThermoPhysics); \
\
makeReaction \
( \
ReversibleReaction, \
ReactionRate##Param1##Param2, \
ThermoPhysics \
)
Definition at line 154 of file makeReaction.H.