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 "psiReactionThermo.H"
#include "rhoReactionThermo.H"
#include "BasicChemistryModel.H"
#include "reactingMixture.H"
#include "chemistrySolver.H"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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