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
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
makeChemistryModel
|
||||||
|
(
|
||||||
|
ODEChemistryModel,
|
||||||
|
psiChemistryModel,
|
||||||
|
constGasThermoPhysics
|
||||||
|
);
|
||||||
makeChemistryModel
|
makeChemistryModel
|
||||||
(
|
(
|
||||||
ODEChemistryModel,
|
ODEChemistryModel,
|
||||||
|
|
|
@ -38,6 +38,7 @@ License
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
makeChemistrySolver(psiChemistryModel, constGasThermoPhysics)
|
||||||
makeChemistrySolver(psiChemistryModel, gasThermoPhysics)
|
makeChemistrySolver(psiChemistryModel, gasThermoPhysics)
|
||||||
makeChemistrySolverType(EulerImplicit, psiChemistryModel, gasThermoPhysics)
|
makeChemistrySolverType(EulerImplicit, psiChemistryModel, gasThermoPhysics)
|
||||||
makeChemistrySolverType(ode, psiChemistryModel, gasThermoPhysics)
|
makeChemistrySolverType(ode, psiChemistryModel, gasThermoPhysics)
|
||||||
|
|
|
@ -37,9 +37,11 @@ namespace Foam
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
makeChemistryReader(constGasThermoPhysics);
|
||||||
makeChemistryReader(gasThermoPhysics);
|
makeChemistryReader(gasThermoPhysics);
|
||||||
makeChemistryReader(icoPoly8ThermoPhysics);
|
makeChemistryReader(icoPoly8ThermoPhysics);
|
||||||
|
|
||||||
|
makeChemistryReaderType(foamChemistryReader, constGasThermoPhysics);
|
||||||
makeChemistryReaderType(foamChemistryReader, gasThermoPhysics);
|
makeChemistryReaderType(foamChemistryReader, gasThermoPhysics);
|
||||||
makeChemistryReaderType(foamChemistryReader, icoPoly8ThermoPhysics);
|
makeChemistryReaderType(foamChemistryReader, icoPoly8ThermoPhysics);
|
||||||
|
|
||||||
|
|
|
@ -138,6 +138,14 @@ makeHsCombustionMixtureThermo
|
||||||
|
|
||||||
// Multi-component reaction thermo
|
// Multi-component reaction thermo
|
||||||
|
|
||||||
|
makeHsCombustionMixtureThermo
|
||||||
|
(
|
||||||
|
hsCombustionThermo,
|
||||||
|
hsPsiMixtureThermo,
|
||||||
|
reactingMixture,
|
||||||
|
constGasThermoPhysics
|
||||||
|
);
|
||||||
|
|
||||||
makeHsCombustionMixtureThermo
|
makeHsCombustionMixtureThermo
|
||||||
(
|
(
|
||||||
hsCombustionThermo,
|
hsCombustionThermo,
|
||||||
|
|
|
@ -48,12 +48,47 @@ namespace Foam
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
defineTemplateTypeNameAndDebug(constGasReaction, 0);
|
||||||
|
defineTemplateRunTimeSelectionTable(constGasReaction, Istream);
|
||||||
|
|
||||||
defineTemplateTypeNameAndDebug(gasReaction, 0);
|
defineTemplateTypeNameAndDebug(gasReaction, 0);
|
||||||
defineTemplateRunTimeSelectionTable(gasReaction, Istream);
|
defineTemplateRunTimeSelectionTable(gasReaction, Istream);
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Make CHEMKIN reactions * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * 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, ArrheniusReactionRate)
|
||||||
makeIRNReactions(gasThermoPhysics, LandauTellerReactionRate)
|
makeIRNReactions(gasThermoPhysics, LandauTellerReactionRate)
|
||||||
makeIRNReactions(gasThermoPhysics, thirdBodyArrheniusReactionRate)
|
makeIRNReactions(gasThermoPhysics, thirdBodyArrheniusReactionRate)
|
||||||
|
|
|
@ -34,6 +34,7 @@ Description
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
makeIRReactions(constGasThermoPhysics, LangmuirHinshelwoodReactionRate)
|
||||||
makeIRReactions(gasThermoPhysics, LangmuirHinshelwoodReactionRate)
|
makeIRReactions(gasThermoPhysics, LangmuirHinshelwoodReactionRate)
|
||||||
makeIRReactions(icoPoly8ThermoPhysics, LangmuirHinshelwoodReactionRate)
|
makeIRReactions(icoPoly8ThermoPhysics, LangmuirHinshelwoodReactionRate)
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,6 +120,12 @@ public:
|
||||||
//- Construct from Istream
|
//- Construct from Istream
|
||||||
constTransport(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
|
// 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 * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
// Dynamic viscosity [kg/ms]
|
// Dynamic viscosity [kg/ms]
|
||||||
|
|
Reference in a new issue