singleStepCombustion: Instantiate a single reaction rather than a list containing one reaction

Now that the reaction system is separated from the mixture thermodynamics it is
possible to rationalise singleStepCombustion so that it instantiates a single
reaction as it should.  This simplifies the code, maintenance and the user
interface not that the combustionProperties file contains a single reaction
rather than a list.
This commit is contained in:
Henry Weller
2019-08-03 17:39:40 +01:00
parent 05208f64dc
commit d411218e88
21 changed files with 110 additions and 170 deletions

View File

@ -23,4 +23,6 @@ infinitelyFastChemistryCoeffs
C 10;
}
#include "reaction"
// ************************************************************************* //

View File

@ -5,23 +5,11 @@
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object reactions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
reactions
reaction
{
propaneReaction
{
type irreversibleinfiniteReaction;
reaction "C3H8 + 5O2 + 18.8N2 = 3CO2 + 4H2O + 18.8N2";
}
type irreversibleinfiniteReaction;
reaction "C3H8 + 5O2 + 18.8N2 = 3CO2 + 4H2O + 18.8N2";
}
// ************************************************************************* //

View File

@ -5,15 +5,6 @@
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object thermo.compressibleGas;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
species
(

View File

@ -42,6 +42,4 @@ solids
{
}
#include "reactions"
// ************************************************************************* //

View File

@ -23,4 +23,6 @@ infinitelyFastChemistryCoeffs
semiImplicit false;
}
#include "reaction"
// ************************************************************************* //

View File

@ -5,23 +5,11 @@
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object reactions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
reactions
reaction
{
propaneReaction
{
type irreversibleinfiniteReaction;
reaction "CH4 + 2O2 + 7.5N2 = CO2 + 2H2O + 7.5N2";
}
type irreversibleinfiniteReaction;
reaction "C3H8 + 5O2 + 18.8N2 = 3CO2 + 4H2O + 18.8N2";
}
// ************************************************************************* //

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
C3H8
CO2
N2
);
O2
{

View File

@ -31,6 +31,5 @@ inertSpecie N2;
fuel C3H8;
#include "thermo.compressibleGas"
#include "reactions"
// ************************************************************************* //

View File

@ -56,4 +56,6 @@ FSDCoeffs
}
}
#include "reaction"
// ************************************************************************* //

View File

@ -5,33 +5,11 @@
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
reaction
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object reactions;
type irreversibleinfiniteReaction;
reaction "CH4 + 2O2 + 7.5N2 = CO2 + 2H2O + 7.5N2";
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
species
(
O2
H2O
CH4
CO2
N2
);
reactions
{
propaneReaction
{
type irreversibleinfiniteReaction;
reaction "CH4 + 2O2 + 7.5N2 = CO2 + 2H2O + 7.5N2";
}
}
// ************************************************************************* //

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

@ -30,10 +30,6 @@ inertSpecie N2;
fuel CH4;
#include "reactions"
#include "thermo.compressibleGas"
// ************************************************************************* //

View File

@ -24,5 +24,6 @@ infinitelyFastChemistryCoeffs
C 5.0;
}
#include "reaction"
// ************************************************************************* //

View File

@ -5,33 +5,11 @@
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
reaction
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object reactions;
type irreversibleinfiniteReaction;
reaction "CH4 + 2O2 + 7.5N2 = CO2 + 2H2O + 7.5N2";
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
species
(
O2
H2O
C3H8
CO2
N2
);
reactions
{
propaneReaction
{
type irreversibleinfiniteReaction;
reaction "C3H8 + 5O2 + 18.8N2 = 3CO2 + 4H2O + 18.8N2";
}
}
// ************************************************************************* //

View File

@ -5,15 +5,6 @@
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object thermo.compressibleGas;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
species
(

View File

@ -31,6 +31,5 @@ inertSpecie N2;
fuel CH4;
#include "thermo.compressibleGas"
#include "reactions"
// ************************************************************************* //