Added constant chemistry

This commit is contained in:
Hrvoje Jasak 2012-01-29 11:49:15 +00:00
parent f72b281a67
commit 4cf7d57480
8 changed files with 85 additions and 0 deletions

View file

@ -40,6 +40,12 @@ Description
namespace Foam
{
makeChemistryModel
(
ODEChemistryModel,
psiChemistryModel,
constGasThermoPhysics
);
makeChemistryModel
(
ODEChemistryModel,

View file

@ -38,6 +38,7 @@ License
namespace Foam
{
makeChemistrySolver(psiChemistryModel, constGasThermoPhysics)
makeChemistrySolver(psiChemistryModel, gasThermoPhysics)
makeChemistrySolverType(EulerImplicit, psiChemistryModel, gasThermoPhysics)
makeChemistrySolverType(ode, psiChemistryModel, gasThermoPhysics)

View file

@ -37,9 +37,11 @@ namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makeChemistryReader(constGasThermoPhysics);
makeChemistryReader(gasThermoPhysics);
makeChemistryReader(icoPoly8ThermoPhysics);
makeChemistryReaderType(foamChemistryReader, constGasThermoPhysics);
makeChemistryReaderType(foamChemistryReader, gasThermoPhysics);
makeChemistryReaderType(foamChemistryReader, icoPoly8ThermoPhysics);

View file

@ -138,6 +138,14 @@ makeHsCombustionMixtureThermo
// Multi-component reaction thermo
makeHsCombustionMixtureThermo
(
hsCombustionThermo,
hsPsiMixtureThermo,
reactingMixture,
constGasThermoPhysics
);
makeHsCombustionMixtureThermo
(
hsCombustionThermo,

View file

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

View file

@ -34,6 +34,7 @@ Description
namespace Foam
{
makeIRReactions(constGasThermoPhysics, LangmuirHinshelwoodReactionRate)
makeIRReactions(gasThermoPhysics, LangmuirHinshelwoodReactionRate)
makeIRReactions(icoPoly8ThermoPhysics, LangmuirHinshelwoodReactionRate)
}

View file

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

View file

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