StandardChemistryModel: Separate the reaction system from the mixture thermodynamics
This allows much greater flexibility in the instantiation of reaction system which may in general depend on fields other than the thermodynamic state. This also simplifies mixture thermodynamics removing the need for the reactingMixture and the instantiation of all the thermodynamic package combinations depending on it.
This commit is contained in:
@ -37,5 +37,6 @@ odeCoeffs
|
||||
relTol 1e-1;
|
||||
}
|
||||
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -18,7 +18,7 @@ FoamFile
|
||||
thermoType
|
||||
{
|
||||
type hePsiThermo;
|
||||
mixture reactingMixture;
|
||||
mixture multiComponentMixture;
|
||||
transport sutherland;
|
||||
thermo janaf;
|
||||
energy sensibleEnthalpy;
|
||||
@ -26,11 +26,8 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
|
||||
#include "speciesThermo"
|
||||
|
||||
#include "reactions"
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
liquids
|
||||
|
||||
@ -37,4 +37,6 @@ odeCoeffs
|
||||
relTol 0.01;
|
||||
}
|
||||
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -15,24 +15,6 @@ Notes:
|
||||
configuration. It should not be considered general-purpose.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object reactions;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
species
|
||||
(
|
||||
O2
|
||||
H2O
|
||||
CH4
|
||||
CO2
|
||||
N2
|
||||
);
|
||||
|
||||
reactions
|
||||
{
|
||||
@ -46,5 +28,4 @@ reactions
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -5,15 +5,15 @@
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object thermo.compressibleGas;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
species
|
||||
(
|
||||
O2
|
||||
H2O
|
||||
CH4
|
||||
CO2
|
||||
N2
|
||||
);
|
||||
|
||||
O2
|
||||
{
|
||||
|
||||
@ -18,7 +18,7 @@ FoamFile
|
||||
thermoType
|
||||
{
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
mixture multiComponentMixture;
|
||||
transport sutherland;
|
||||
thermo janaf;
|
||||
energy sensibleEnthalpy;
|
||||
@ -28,10 +28,6 @@ thermoType
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
|
||||
#include "reactions"
|
||||
|
||||
#include "thermo.compressibleGas"
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -24,5 +24,6 @@ chemistry off;
|
||||
|
||||
initialChemicalTimeStep 1e-07;
|
||||
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -18,7 +18,7 @@ FoamFile
|
||||
thermoType
|
||||
{
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
mixture multiComponentMixture;
|
||||
transport sutherland;
|
||||
thermo janaf;
|
||||
energy sensibleEnthalpy;
|
||||
@ -26,9 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
|
||||
#include "reactions"
|
||||
|
||||
#include "speciesThermo"
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
@ -36,5 +36,6 @@ odeCoeffs
|
||||
eps 0.05;
|
||||
}
|
||||
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -5,25 +5,8 @@
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object reactions;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
species
|
||||
(
|
||||
N2
|
||||
O2
|
||||
H2O
|
||||
);
|
||||
|
||||
reactions
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -5,15 +5,13 @@
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object thermo.incompressiblePoly;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
species
|
||||
(
|
||||
N2
|
||||
O2
|
||||
H2O
|
||||
);
|
||||
|
||||
N2
|
||||
{
|
||||
|
||||
@ -18,7 +18,7 @@ FoamFile
|
||||
thermoType
|
||||
{
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
mixture multiComponentMixture;
|
||||
transport polynomial;
|
||||
thermo hPolynomial;
|
||||
energy sensibleInternalEnergy;
|
||||
@ -26,9 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
|
||||
#include "reactions"
|
||||
|
||||
#include "thermo.incompressiblePoly"
|
||||
|
||||
liquids
|
||||
|
||||
@ -24,5 +24,6 @@ chemistry off;
|
||||
|
||||
initialChemicalTimeStep 1e-07;
|
||||
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -18,7 +18,7 @@ FoamFile
|
||||
thermoType
|
||||
{
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
mixture multiComponentMixture;
|
||||
transport sutherland;
|
||||
thermo janaf;
|
||||
energy sensibleEnthalpy;
|
||||
@ -26,9 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
|
||||
#include "reactions"
|
||||
|
||||
#include "speciesThermo"
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
@ -24,4 +24,6 @@ chemistry off;
|
||||
|
||||
initialChemicalTimeStep 1e-7;
|
||||
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -5,24 +5,8 @@
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object reactions;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
species
|
||||
(
|
||||
air
|
||||
H2O
|
||||
);
|
||||
|
||||
reactions
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -5,15 +5,12 @@
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object thermo.incompressiblePoly;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
species
|
||||
(
|
||||
air
|
||||
H2O
|
||||
);
|
||||
|
||||
N2
|
||||
{
|
||||
|
||||
@ -18,7 +18,7 @@ FoamFile
|
||||
thermoType
|
||||
{
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
mixture multiComponentMixture;
|
||||
transport polynomial;
|
||||
thermo hPolynomial;
|
||||
energy sensibleInternalEnergy;
|
||||
@ -26,9 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
|
||||
#include "reactions"
|
||||
|
||||
#include "thermo.incompressiblePoly"
|
||||
|
||||
inertSpecie air;
|
||||
|
||||
@ -24,5 +24,6 @@ chemistry off;
|
||||
|
||||
initialChemicalTimeStep 1e-07;
|
||||
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -18,7 +18,7 @@ FoamFile
|
||||
thermoType
|
||||
{
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
mixture multiComponentMixture;
|
||||
transport sutherland;
|
||||
thermo janaf;
|
||||
energy sensibleEnthalpy;
|
||||
@ -26,9 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
|
||||
#include "reactions"
|
||||
|
||||
#include "speciesThermo"
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
@ -24,5 +24,6 @@ chemistry off;
|
||||
|
||||
initialChemicalTimeStep 1e-07;
|
||||
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -18,7 +18,7 @@ FoamFile
|
||||
thermoType
|
||||
{
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
mixture multiComponentMixture;
|
||||
transport sutherland;
|
||||
thermo janaf;
|
||||
energy sensibleEnthalpy;
|
||||
@ -26,9 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
|
||||
#include "reactions"
|
||||
|
||||
#include "speciesThermo"
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
@ -36,5 +36,6 @@ odeCoeffs
|
||||
eps 0.05;
|
||||
}
|
||||
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -5,24 +5,8 @@
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object reactions;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
species
|
||||
(
|
||||
air
|
||||
H2O
|
||||
);
|
||||
|
||||
reactions
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -5,15 +5,12 @@
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object thermo.incompressiblePoly;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
species
|
||||
(
|
||||
air
|
||||
H2O
|
||||
);
|
||||
|
||||
N2
|
||||
{
|
||||
|
||||
@ -18,7 +18,7 @@ FoamFile
|
||||
thermoType
|
||||
{
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
mixture multiComponentMixture;
|
||||
transport polynomial;
|
||||
thermo hPolynomial;
|
||||
energy sensibleInternalEnergy;
|
||||
@ -26,9 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
|
||||
#include "reactions"
|
||||
|
||||
#include "thermo.incompressiblePoly"
|
||||
|
||||
inertSpecie air;
|
||||
|
||||
@ -24,5 +24,6 @@ chemistry off;
|
||||
|
||||
initialChemicalTimeStep 1e-07; // NOT USED
|
||||
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -5,24 +5,8 @@
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object reactions;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
species
|
||||
(
|
||||
air
|
||||
H2O
|
||||
);
|
||||
|
||||
reactions
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -5,15 +5,12 @@
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object thermo.incompressiblePoly;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
species
|
||||
(
|
||||
air
|
||||
H2O
|
||||
);
|
||||
|
||||
N2
|
||||
{
|
||||
|
||||
@ -18,7 +18,7 @@ FoamFile
|
||||
thermoType
|
||||
{
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
mixture multiComponentMixture;
|
||||
transport polynomial;
|
||||
thermo hPolynomial;
|
||||
energy sensibleInternalEnergy;
|
||||
@ -26,9 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
|
||||
#include "reactions"
|
||||
|
||||
#include "thermo.incompressiblePoly"
|
||||
|
||||
inertSpecie air;
|
||||
|
||||
@ -24,5 +24,6 @@ chemistry off;
|
||||
|
||||
initialChemicalTimeStep 1e-07; // NOT USED
|
||||
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -5,24 +5,8 @@
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object reactions;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
species
|
||||
(
|
||||
air
|
||||
H2O
|
||||
);
|
||||
|
||||
reactions
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -5,15 +5,12 @@
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object thermo.incompressiblePoly;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
species
|
||||
(
|
||||
air
|
||||
H2O
|
||||
);
|
||||
|
||||
N2
|
||||
{
|
||||
|
||||
@ -18,7 +18,7 @@ FoamFile
|
||||
thermoType
|
||||
{
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
mixture multiComponentMixture;
|
||||
transport polynomial;
|
||||
thermo hPolynomial;
|
||||
energy sensibleEnthalpy;
|
||||
@ -26,9 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
|
||||
#include "reactions"
|
||||
|
||||
#include "thermo.incompressiblePoly"
|
||||
|
||||
inertSpecie air;
|
||||
|
||||
@ -30,5 +30,6 @@ odeCoeffs
|
||||
eps 0.05;
|
||||
}
|
||||
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -18,7 +18,7 @@ FoamFile
|
||||
thermoType
|
||||
{
|
||||
type hePsiThermo;
|
||||
mixture reactingMixture;
|
||||
mixture multiComponentMixture;
|
||||
transport sutherland;
|
||||
thermo janaf;
|
||||
energy sensibleEnthalpy;
|
||||
@ -40,6 +40,4 @@ liquids
|
||||
solids
|
||||
{}
|
||||
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user