chemFoam: Changed from psi to rho thermo to support both liquid and gaseous reactions

This commit is contained in:
Henry Weller
2018-06-21 21:59:59 +01:00
parent fa12e660db
commit 85e249e61d
8 changed files with 12 additions and 12 deletions

View File

@ -32,7 +32,7 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "fvCFD.H" #include "fvCFD.H"
#include "psiReactionThermo.H" #include "rhoReactionThermo.H"
#include "BasicChemistryModel.H" #include "BasicChemistryModel.H"
#include "reactingMixture.H" #include "reactingMixture.H"
#include "chemistrySolver.H" #include "chemistrySolver.H"

View File

@ -1,7 +1,7 @@
BasicChemistryModel<psiReactionThermo>& chemistry = pChemistry(); BasicChemistryModel<rhoReactionThermo>& chemistry = pChemistry();
scalar dtChem = min scalar dtChem = min
( (
refCast<const BasicChemistryModel<psiReactionThermo>> refCast<const BasicChemistryModel<rhoReactionThermo>>
( (
chemistry chemistry
).deltaTChem()[0], ).deltaTChem()[0],

View File

@ -24,13 +24,13 @@
#include "createBaseFields.H" #include "createBaseFields.H"
Info<< "Reading thermophysical properties\n" << endl; Info<< "Reading thermophysical properties\n" << endl;
autoPtr<psiReactionThermo> pThermo(psiReactionThermo::New(mesh)); autoPtr<rhoReactionThermo> pThermo(rhoReactionThermo::New(mesh));
psiReactionThermo& thermo = pThermo(); rhoReactionThermo& thermo = pThermo();
thermo.validate(args.executable(), "h"); thermo.validate(args.executable(), "h");
autoPtr<BasicChemistryModel<psiReactionThermo>> pChemistry autoPtr<BasicChemistryModel<rhoReactionThermo>> pChemistry
( (
BasicChemistryModel<psiReactionThermo>::New(thermo) BasicChemistryModel<rhoReactionThermo>::New(thermo)
); );
volScalarField rho volScalarField rho

View File

@ -17,7 +17,7 @@ FoamFile
thermoType thermoType
{ {
type hePsiThermo; type heRhoThermo;
mixture reactingMixture; mixture reactingMixture;
transport sutherland; transport sutherland;
thermo janaf; thermo janaf;

View File

@ -17,7 +17,7 @@ FoamFile
thermoType thermoType
{ {
type hePsiThermo; type heRhoThermo;
mixture reactingMixture; mixture reactingMixture;
transport sutherland; transport sutherland;
thermo janaf; thermo janaf;

View File

@ -17,7 +17,7 @@ FoamFile
thermoType thermoType
{ {
type hePsiThermo; type heRhoThermo;
mixture reactingMixture; mixture reactingMixture;
transport sutherland; transport sutherland;
thermo janaf; thermo janaf;

View File

@ -17,7 +17,7 @@ FoamFile
thermoType thermoType
{ {
type hePsiThermo; type heRhoThermo;
mixture reactingMixture; mixture reactingMixture;
transport sutherland; transport sutherland;
thermo janaf; thermo janaf;

View File

@ -17,7 +17,7 @@ FoamFile
thermoType thermoType
{ {
type hePsiThermo; type heRhoThermo;
mixture reactingMixture; mixture reactingMixture;
transport sutherland; transport sutherland;
thermo janaf; thermo janaf;