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:
@ -23,4 +23,6 @@ infinitelyFastChemistryCoeffs
|
||||
C 10;
|
||||
}
|
||||
|
||||
#include "reaction"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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";
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -5,15 +5,6 @@
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object thermo.compressibleGas;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
species
|
||||
(
|
||||
|
||||
@ -42,6 +42,4 @@ solids
|
||||
{
|
||||
}
|
||||
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -23,4 +23,6 @@ infinitelyFastChemistryCoeffs
|
||||
semiImplicit false;
|
||||
}
|
||||
|
||||
#include "reaction"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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";
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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
|
||||
{
|
||||
|
||||
@ -31,6 +31,5 @@ inertSpecie N2;
|
||||
fuel C3H8;
|
||||
|
||||
#include "thermo.compressibleGas"
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -56,4 +56,6 @@ FSDCoeffs
|
||||
}
|
||||
}
|
||||
|
||||
#include "reaction"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -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
|
||||
{
|
||||
|
||||
@ -30,10 +30,6 @@ inertSpecie N2;
|
||||
|
||||
fuel CH4;
|
||||
|
||||
|
||||
#include "reactions"
|
||||
|
||||
#include "thermo.compressibleGas"
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -24,5 +24,6 @@ infinitelyFastChemistryCoeffs
|
||||
C 5.0;
|
||||
}
|
||||
|
||||
#include "reaction"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -5,15 +5,6 @@
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object thermo.compressibleGas;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
species
|
||||
(
|
||||
|
||||
@ -31,6 +31,5 @@ inertSpecie N2;
|
||||
fuel CH4;
|
||||
|
||||
#include "thermo.compressibleGas"
|
||||
#include "reactions"
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user