32 #ifndef makeReaction_H 33 #define makeReaction_H 45 #define defineReaction(nullArg, ThermoPhysics) \ 47 typedef Reaction<ThermoPhysics> Reaction##ThermoPhysics; \ 49 defineTemplateTypeNameAndDebug(Reaction##ThermoPhysics, 0); \ 51 defineTemplateRunTimeSelectionTable(Reaction##ThermoPhysics, dictionary) \ 52 defineTemplateRunTimeSelectionTable \ 54 Reaction##ThermoPhysics, \ 59 #define makeReaction(ReactionType, ReactionRate, ThermoPhysics) \ 61 typedef ReactionType<ThermoPhysics, ReactionRate> \ 62 ReactionType##ThermoPhysics##ReactionRate; \ 63 typedef Reaction<ThermoPhysics> \ 64 ReactionType##ThermoPhysics##ReactionRate##Base; \ 67 const word ReactionType##ThermoPhysics##ReactionRate::typeName \ 69 ReactionType::typeName_() \ 70 + ReactionRate::type().capitalise() \ 73 addToRunTimeSelectionTable \ 75 ReactionType##ThermoPhysics##ReactionRate##Base, \ 76 ReactionType##ThermoPhysics##ReactionRate, \ 81 #define makeGeneralReaction(ReactionType, ReactionRate, ThermoPhysics) \ 83 typedef ReactionType<ThermoPhysics, ReactionRate> \ 84 ReactionType##ThermoPhysics##ReactionRate; \ 85 typedef Reaction<ThermoPhysics> \ 86 ReactionType##ThermoPhysics##ReactionRate##Base; \ 89 const word ReactionType##ThermoPhysics##ReactionRate::typeName \ 91 ReactionType::typeName_() \ 92 + ReactionRate::type().capitalise() \ 95 addToRunTimeSelectionTable \ 97 ReactionType##ThermoPhysics##ReactionRate##Base, \ 98 ReactionType##ThermoPhysics##ReactionRate, \ 103 #define makePressureDependentReaction\ 106 PressureDependentReactionRate, \ 112 typedef PressureDependentReactionRate<ReactionRate, FallOffFunction> \ 113 PressureDependentReactionRate##ReactionRate##FallOffFunction; \ 118 PressureDependentReactionRate##ReactionRate##FallOffFunction, \ 123 #define makeIReactions(ReactionRate, ThermoPhysics) \ 125 makeReaction(IrreversibleReaction, ReactionRate, ThermoPhysics) 128 #define makeIRReactions(ReactionRate, ThermoPhysics) \ 130 makeIReactions(ReactionRate, ThermoPhysics); \ 131 makeReaction(ReversibleReaction, ReactionRate, ThermoPhysics) 134 #define makeIRNReactions(ReactionRate, ThermoPhysics) \ 136 makeIRReactions(ReactionRate, ThermoPhysics); \ 137 makeReaction(NonEquilibriumReversibleReaction, ReactionRate, ThermoPhysics) 140 #define makeIRRPressureDependentReactions\ 142 PressureDependentReactionRate, \ 148 makePressureDependentReaction \ 150 IrreversibleReaction, \ 151 PressureDependentReactionRate, \ 156 makePressureDependentReaction \ 158 ReversibleReaction, \ 159 PressureDependentReactionRate, \
Macros for easy insertion into run-time selection tables.