Thermodynamics: rationalised the "make" macros for chemistrySolvers
This commit is contained in:
parent
931b86335e
commit
4413f10e97
@ -112,7 +112,6 @@ public:
|
||||
);
|
||||
|
||||
|
||||
|
||||
#define makeChemistrySolverType(SS, ODEChem, Comp, Thermo) \
|
||||
\
|
||||
typedef SS<ODEChem<Comp, Thermo> > SS##ODEChem##Comp##Thermo; \
|
||||
@ -132,26 +131,6 @@ public:
|
||||
);
|
||||
|
||||
|
||||
#define makeSolidChemistrySolverType(SS, ODEChem, Comp, SThermo, GThermo) \
|
||||
\
|
||||
typedef SS<ODEChem<Comp, SThermo, GThermo> > \
|
||||
SS##ODEChem##Comp##SThermo##GThermo; \
|
||||
\
|
||||
defineTemplateTypeNameAndDebugWithName \
|
||||
( \
|
||||
SS##ODEChem##Comp##SThermo##GThermo, \
|
||||
#SS"<"#ODEChem"<"#Comp","#SThermo","#GThermo">>", \
|
||||
0 \
|
||||
); \
|
||||
\
|
||||
addToRunTimeSelectionTable \
|
||||
( \
|
||||
Comp, \
|
||||
SS##ODEChem##Comp##SThermo##GThermo, \
|
||||
fvMesh \
|
||||
);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#ifdef NoRepository
|
||||
|
@ -41,6 +41,11 @@ namespace Foam
|
||||
|
||||
#define makeSolidChemistrySolverType(SS, ODEChem, Comp, SThermo, GThermo) \
|
||||
\
|
||||
typedef ODESolidChemistryModel<Comp, SThermo, GThermo> \
|
||||
ODESolidChemistryModel##Comp##SThermo##GThermo; \
|
||||
\
|
||||
makeChemistrySolver(ODESolidChemistryModel##Comp##SThermo##GThermo) \
|
||||
\
|
||||
typedef SS<ODEChem<Comp, SThermo, GThermo> > \
|
||||
SS##ODEChem##Comp##SThermo##GThermo; \
|
||||
\
|
||||
|
@ -27,8 +27,6 @@ License
|
||||
#include "solidThermoPhysicsTypes.H"
|
||||
#include "thermoPhysicsTypes.H"
|
||||
|
||||
#include "chemistrySolver.H"
|
||||
|
||||
#include "ODESolidChemistryModel.H"
|
||||
#include "solidChemistryModel.H"
|
||||
|
||||
@ -38,12 +36,6 @@ License
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
typedef ODESolidChemistryModel
|
||||
<solidChemistryModel, hConstSolidThermoPhysics, gasThermoPhysics>
|
||||
solidODEChemistryConstThermo;
|
||||
|
||||
makeChemistrySolver(solidODEChemistryConstThermo)
|
||||
|
||||
makeSolidChemistrySolverType
|
||||
(
|
||||
ode,
|
||||
@ -53,12 +45,6 @@ namespace Foam
|
||||
gasThermoPhysics
|
||||
)
|
||||
|
||||
typedef ODESolidChemistryModel
|
||||
<solidChemistryModel, hExponentialSolidThermoPhysics, gasThermoPhysics>
|
||||
solidODEChemistryExpThermo;
|
||||
|
||||
makeChemistrySolver(solidODEChemistryExpThermo)
|
||||
|
||||
makeSolidChemistrySolverType
|
||||
(
|
||||
ode,
|
||||
|
Loading…
Reference in New Issue
Block a user