ENH: makeSolidReaction: modify macros to allow new models
This commit is contained in:
parent
c64c312bae
commit
9c46f86048
@ -6,6 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2017 OpenFOAM Foundation
|
Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
|
Copyright (C) 2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -56,11 +57,6 @@ namespace Foam
|
|||||||
typedef ReactionType<solidReaction, Thermo, ReactionRate> \
|
typedef ReactionType<solidReaction, Thermo, ReactionRate> \
|
||||||
ReactionType##Thermo##ReactionRate; \
|
ReactionType##Thermo##ReactionRate; \
|
||||||
\
|
\
|
||||||
defineTemplateRunTimeSelectionTable(Reaction##Thermo, dictionary); \
|
|
||||||
\
|
|
||||||
defineTemplateTypeNameAndDebug(solidReaction##Thermo, 0); \
|
|
||||||
defineTemplateTypeNameAndDebug(Reaction##Thermo, 0); \
|
|
||||||
\
|
|
||||||
template<> \
|
template<> \
|
||||||
const word ReactionType##Thermo##ReactionRate::typeName \
|
const word ReactionType##Thermo##ReactionRate::typeName \
|
||||||
( \
|
( \
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2015 OpenFOAM Foundation
|
Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
|
Copyright (C) 2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -26,9 +27,27 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "makeSolidReaction.H"
|
#include "makeSolidReaction.H"
|
||||||
|
|
||||||
#include "solidArrheniusReactionRate.H"
|
#include "solidArrheniusReactionRate.H"
|
||||||
|
|
||||||
#include "solidThermoPhysicsTypes.H"
|
#include "solidThermoPhysicsTypes.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
#define makeSolidReactions(Thermo) \
|
||||||
|
\
|
||||||
|
typedef solidReaction<Thermo> solidReaction##Thermo; \
|
||||||
|
\
|
||||||
|
typedef Reaction<Thermo> Reaction##Thermo; \
|
||||||
|
\
|
||||||
|
defineTemplateRunTimeSelectionTable(Reaction##Thermo, dictionary); \
|
||||||
|
\
|
||||||
|
defineTemplateTypeNameAndDebug(solidReaction##Thermo, 0); \
|
||||||
|
defineTemplateTypeNameAndDebug(Reaction##Thermo, 0); \
|
||||||
|
\
|
||||||
|
makeSolidIRReactions(Thermo, solidArrheniusReactionRate)
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
@ -36,19 +55,11 @@ namespace Foam
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Make Solid reactions * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Make Solid reactions * * * * * * * * * * * * //
|
||||||
|
|
||||||
makeSolidIRReactions(hConstSolidThermoPhysics, solidArrheniusReactionRate)
|
makeSolidReactions(hConstSolidThermoPhysics)
|
||||||
|
|
||||||
makeSolidIRReactions
|
makeSolidReactions(hPowerSolidThermoPhysics)
|
||||||
(
|
|
||||||
hPowerSolidThermoPhysics,
|
|
||||||
solidArrheniusReactionRate
|
|
||||||
)
|
|
||||||
|
|
||||||
makeSolidIRReactions
|
makeSolidReactions(hExpKappaConstSolidThermoPhysics)
|
||||||
(
|
|
||||||
hExpKappaConstSolidThermoPhysics,
|
|
||||||
solidArrheniusReactionRate
|
|
||||||
)
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user