Thermodynamics: rationalised the "make" macros for chemistrySolvers

This commit is contained in:
Henry 2012-09-26 23:49:29 +01:00
parent 931b86335e
commit 4413f10e97
3 changed files with 5 additions and 35 deletions

View File

@ -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

View File

@ -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; \
\

View File

@ -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,