makeReaction.H File Reference

Macros for instantiating reactions on given thermo packages. More...

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

Go to the source code of this file.

Macros

#define defineReaction(nullArg, ThermoPhysics)
 
#define makeReaction(ReactionType, ReactionRate, ThermoPhysics)
 
#define makeGeneralReaction(ReactionType, ReactionRate, ThermoPhysics)
 
#define makePressureDependentReaction( ReactionType, PressureDependentReactionRate, ReactionRate, FallOffFunction, ThermoPhysics)
 
#define makeIReactions(ReactionRate, ThermoPhysics)
 
#define makeIRReactions(ReactionRate, ThermoPhysics)
 
#define makeIRNReactions(ReactionRate, ThermoPhysics)
 
#define makeIRRPressureDependentReactions( PressureDependentReactionRate, ReactionRate, FallOffFunction, ThermoPhysics)
 

Detailed Description

Macros for instantiating reactions on given thermo packages.

Original source file makeReaction.H

InClass Foam::makeReaction

Definition in file makeReaction.H.

Macro Definition Documentation

◆ defineReaction

#define defineReaction (   nullArg,
  ThermoPhysics 
)
Value:
\
typedef Reaction<ThermoPhysics> Reaction##ThermoPhysics; \
defineTemplateTypeNameAndDebug(Reaction##ThermoPhysics, 0); \
defineTemplateRunTimeSelectionTable(Reaction##ThermoPhysics, dictionary) \
defineTemplateRunTimeSelectionTable \
( \
Reaction##ThermoPhysics, \
objectRegistry \
)
#define defineTemplateRunTimeSelectionTable(baseType, argNames)
Define run-time selection table for template classes.
#define defineTemplateTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information for templates, useful.
Definition: className.H:135

Definition at line 45 of file makeReaction.H.

◆ makeReaction

#define makeReaction (   ReactionType,
  ReactionRate,
  ThermoPhysics 
)
Value:
\
typedef ReactionType<ThermoPhysics, ReactionRate> \
ReactionType##ThermoPhysics##ReactionRate; \
typedef Reaction<ThermoPhysics> \
ReactionType##ThermoPhysics##ReactionRate##Base; \
\
template<> \
const word ReactionType##ThermoPhysics##ReactionRate::typeName \
( \
ReactionType::typeName_() \
+ ReactionRate::type().capitalise() \
); \
\
addToRunTimeSelectionTable \
( \
ReactionType##ThermoPhysics##ReactionRate##Base, \
ReactionType##ThermoPhysics##ReactionRate, \
dictionary \
)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Definition: POSIX.C:488

Definition at line 59 of file makeReaction.H.

◆ makeGeneralReaction

#define makeGeneralReaction (   ReactionType,
  ReactionRate,
  ThermoPhysics 
)
Value:
\
typedef ReactionType<ThermoPhysics, ReactionRate> \
ReactionType##ThermoPhysics##ReactionRate; \
typedef Reaction<ThermoPhysics> \
ReactionType##ThermoPhysics##ReactionRate##Base; \
\
template<> \
const word ReactionType##ThermoPhysics##ReactionRate::typeName \
( \
ReactionType::typeName_() \
+ ReactionRate::type().capitalise() \
); \
\
addToRunTimeSelectionTable \
( \
ReactionType##ThermoPhysics##ReactionRate##Base, \
ReactionType##ThermoPhysics##ReactionRate, \
objectRegistry \
);
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Definition: POSIX.C:488

Definition at line 81 of file makeReaction.H.

◆ makePressureDependentReaction

#define makePressureDependentReaction (   ReactionType,
  PressureDependentReactionRate,
  ReactionRate,
  FallOffFunction,
  ThermoPhysics 
)
Value:
\
typedef PressureDependentReactionRate<ReactionRate, FallOffFunction> \
PressureDependentReactionRate##ReactionRate##FallOffFunction; \
\
makeReaction \
( \
ReactionType, \
PressureDependentReactionRate##ReactionRate##FallOffFunction, \
ThermoPhysics \
)

Definition at line 103 of file makeReaction.H.

◆ makeIReactions

#define makeIReactions (   ReactionRate,
  ThermoPhysics 
)
Value:
\
makeReaction(IrreversibleReaction, ReactionRate, ThermoPhysics)

Definition at line 123 of file makeReaction.H.

◆ makeIRReactions

#define makeIRReactions (   ReactionRate,
  ThermoPhysics 
)
Value:
\
makeIReactions(ReactionRate, ThermoPhysics); \
makeReaction(ReversibleReaction, ReactionRate, ThermoPhysics)

Definition at line 128 of file makeReaction.H.

◆ makeIRNReactions

#define makeIRNReactions (   ReactionRate,
  ThermoPhysics 
)
Value:
\
makeIRReactions(ReactionRate, ThermoPhysics); \
makeReaction(NonEquilibriumReversibleReaction, ReactionRate, ThermoPhysics)

Definition at line 134 of file makeReaction.H.

◆ makeIRRPressureDependentReactions

#define makeIRRPressureDependentReactions (   PressureDependentReactionRate,
  ReactionRate,
  FallOffFunction,
  ThermoPhysics 
)
Value:
\
makePressureDependentReaction \
( \
IrreversibleReaction, \
PressureDependentReactionRate, \
ReactionRate, \
FallOffFunction, \
ThermoPhysics \
); \
makePressureDependentReaction \
( \
ReversibleReaction, \
PressureDependentReactionRate, \
ReactionRate, \
FallOffFunction, \
ThermoPhysics \
)

Definition at line 140 of file makeReaction.H.