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:
Henry Weller
2019-08-03 15:11:00 +01:00
parent 509133ecbb
commit 05208f64dc
120 changed files with 464 additions and 1180 deletions

View File

@ -37,5 +37,6 @@ odeCoeffs
relTol 1e-1;
}
#include "reactions"
// ************************************************************************* //

View File

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

View File

@ -37,4 +37,6 @@ odeCoeffs
relTol 0.01;
}
#include "reactions"
// ************************************************************************* //

View File

@ -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
}
}
// ************************************************************************* //

View File

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

View File

@ -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"
// ************************************************************************* //

View File

@ -24,5 +24,6 @@ chemistry off;
initialChemicalTimeStep 1e-07;
#include "reactions"
// ************************************************************************* //

View File

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

View File

@ -36,5 +36,6 @@ odeCoeffs
eps 0.05;
}
#include "reactions"
// ************************************************************************* //

View File

@ -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
{}
// ************************************************************************* //

View File

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

View File

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

View File

@ -24,5 +24,6 @@ chemistry off;
initialChemicalTimeStep 1e-07;
#include "reactions"
// ************************************************************************* //

View File

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

View File

@ -24,4 +24,6 @@ chemistry off;
initialChemicalTimeStep 1e-7;
#include "reactions"
// ************************************************************************* //

View File

@ -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
{}
// ************************************************************************* //

View File

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

View File

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

View File

@ -24,5 +24,6 @@ chemistry off;
initialChemicalTimeStep 1e-07;
#include "reactions"
// ************************************************************************* //

View File

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

View File

@ -24,5 +24,6 @@ chemistry off;
initialChemicalTimeStep 1e-07;
#include "reactions"
// ************************************************************************* //

View File

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

View File

@ -36,5 +36,6 @@ odeCoeffs
eps 0.05;
}
#include "reactions"
// ************************************************************************* //

View File

@ -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
{}
// ************************************************************************* //

View File

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

View File

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

View File

@ -24,5 +24,6 @@ chemistry off;
initialChemicalTimeStep 1e-07; // NOT USED
#include "reactions"
// ************************************************************************* //

View File

@ -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
{}
// ************************************************************************* //

View File

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

View File

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

View File

@ -24,5 +24,6 @@ chemistry off;
initialChemicalTimeStep 1e-07; // NOT USED
#include "reactions"
// ************************************************************************* //

View File

@ -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
{}
// ************************************************************************* //

View File

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

View File

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

View File

@ -30,5 +30,6 @@ odeCoeffs
eps 0.05;
}
#include "reactions"
// ************************************************************************* //

View File

@ -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"
// ************************************************************************* //