Added constant chemistry
This commit is contained in:
parent
f72b281a67
commit
4cf7d57480
8 changed files with 85 additions and 0 deletions
|
@ -40,6 +40,12 @@ Description
|
|||
|
||||
namespace Foam
|
||||
{
|
||||
makeChemistryModel
|
||||
(
|
||||
ODEChemistryModel,
|
||||
psiChemistryModel,
|
||||
constGasThermoPhysics
|
||||
);
|
||||
makeChemistryModel
|
||||
(
|
||||
ODEChemistryModel,
|
||||
|
|
|
@ -38,6 +38,7 @@ License
|
|||
|
||||
namespace Foam
|
||||
{
|
||||
makeChemistrySolver(psiChemistryModel, constGasThermoPhysics)
|
||||
makeChemistrySolver(psiChemistryModel, gasThermoPhysics)
|
||||
makeChemistrySolverType(EulerImplicit, psiChemistryModel, gasThermoPhysics)
|
||||
makeChemistrySolverType(ode, psiChemistryModel, gasThermoPhysics)
|
||||
|
|
|
@ -37,9 +37,11 @@ namespace Foam
|
|||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
makeChemistryReader(constGasThermoPhysics);
|
||||
makeChemistryReader(gasThermoPhysics);
|
||||
makeChemistryReader(icoPoly8ThermoPhysics);
|
||||
|
||||
makeChemistryReaderType(foamChemistryReader, constGasThermoPhysics);
|
||||
makeChemistryReaderType(foamChemistryReader, gasThermoPhysics);
|
||||
makeChemistryReaderType(foamChemistryReader, icoPoly8ThermoPhysics);
|
||||
|
||||
|
|
|
@ -138,6 +138,14 @@ makeHsCombustionMixtureThermo
|
|||
|
||||
// Multi-component reaction thermo
|
||||
|
||||
makeHsCombustionMixtureThermo
|
||||
(
|
||||
hsCombustionThermo,
|
||||
hsPsiMixtureThermo,
|
||||
reactingMixture,
|
||||
constGasThermoPhysics
|
||||
);
|
||||
|
||||
makeHsCombustionMixtureThermo
|
||||
(
|
||||
hsCombustionThermo,
|
||||
|
|
|
@ -48,12 +48,47 @@ namespace Foam
|
|||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
defineTemplateTypeNameAndDebug(constGasReaction, 0);
|
||||
defineTemplateRunTimeSelectionTable(constGasReaction, Istream);
|
||||
|
||||
defineTemplateTypeNameAndDebug(gasReaction, 0);
|
||||
defineTemplateRunTimeSelectionTable(gasReaction, Istream);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * Make CHEMKIN reactions * * * * * * * * * * * * //
|
||||
|
||||
// constGasThermoPhysics
|
||||
|
||||
makeIRNReactions(constGasThermoPhysics, ArrheniusReactionRate)
|
||||
makeIRNReactions(constGasThermoPhysics, LandauTellerReactionRate)
|
||||
makeIRNReactions(constGasThermoPhysics, thirdBodyArrheniusReactionRate)
|
||||
makeIRReactions(constGasThermoPhysics, JanevReactionRate)
|
||||
makeIRReactions(constGasThermoPhysics, powerSeriesReactionRate)
|
||||
|
||||
makePressureDependentReactions
|
||||
(
|
||||
constGasThermoPhysics,
|
||||
ArrheniusReactionRate,
|
||||
LindemannFallOffFunction
|
||||
)
|
||||
|
||||
makePressureDependentReactions
|
||||
(
|
||||
constGasThermoPhysics,
|
||||
ArrheniusReactionRate,
|
||||
TroeFallOffFunction
|
||||
)
|
||||
|
||||
makePressureDependentReactions
|
||||
(
|
||||
constGasThermoPhysics,
|
||||
ArrheniusReactionRate,
|
||||
SRIFallOffFunction
|
||||
)
|
||||
|
||||
|
||||
// gasThermoPhysics
|
||||
|
||||
makeIRNReactions(gasThermoPhysics, ArrheniusReactionRate)
|
||||
makeIRNReactions(gasThermoPhysics, LandauTellerReactionRate)
|
||||
makeIRNReactions(gasThermoPhysics, thirdBodyArrheniusReactionRate)
|
||||
|
|
|
@ -34,6 +34,7 @@ Description
|
|||
|
||||
namespace Foam
|
||||
{
|
||||
makeIRReactions(constGasThermoPhysics, LangmuirHinshelwoodReactionRate)
|
||||
makeIRReactions(gasThermoPhysics, LangmuirHinshelwoodReactionRate)
|
||||
makeIRReactions(icoPoly8ThermoPhysics, LangmuirHinshelwoodReactionRate)
|
||||
}
|
||||
|
|
|
@ -120,6 +120,12 @@ public:
|
|||
//- Construct from Istream
|
||||
constTransport(Istream&);
|
||||
|
||||
//- Construct and return a clone
|
||||
inline autoPtr<constTransport> clone() const;
|
||||
|
||||
// Selector from Istream
|
||||
inline static autoPtr<constTransport> New(Istream& is);
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
|
|
|
@ -60,6 +60,32 @@ inline constTransport<thermo>::constTransport
|
|||
{}
|
||||
|
||||
|
||||
// Construct and return a clone
|
||||
template<class thermo>
|
||||
inline autoPtr<constTransport<thermo> > constTransport<thermo>::clone
|
||||
() const
|
||||
{
|
||||
return autoPtr<constTransport<thermo> >
|
||||
(
|
||||
new constTransport<thermo>(*this)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// Selector from Istream
|
||||
template<class thermo>
|
||||
inline autoPtr<constTransport<thermo> > constTransport<thermo>::New
|
||||
(
|
||||
Istream& is
|
||||
)
|
||||
{
|
||||
return autoPtr<constTransport<thermo> >
|
||||
(
|
||||
new constTransport<thermo>(is)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
// Dynamic viscosity [kg/ms]
|
||||
|
|
Reference in a new issue