mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
chemFoam: Changed from psi to rho thermo to support both liquid and gaseous reactions
This commit is contained in:
@ -32,7 +32,7 @@ Description
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "fvCFD.H"
|
||||
#include "psiReactionThermo.H"
|
||||
#include "rhoReactionThermo.H"
|
||||
#include "BasicChemistryModel.H"
|
||||
#include "reactingMixture.H"
|
||||
#include "chemistrySolver.H"
|
||||
|
||||
@ -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],
|
||||
|
||||
@ -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
|
||||
|
||||
@ -17,7 +17,7 @@ FoamFile
|
||||
|
||||
thermoType
|
||||
{
|
||||
type hePsiThermo;
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
transport sutherland;
|
||||
thermo janaf;
|
||||
|
||||
@ -17,7 +17,7 @@ FoamFile
|
||||
|
||||
thermoType
|
||||
{
|
||||
type hePsiThermo;
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
transport sutherland;
|
||||
thermo janaf;
|
||||
|
||||
@ -17,7 +17,7 @@ FoamFile
|
||||
|
||||
thermoType
|
||||
{
|
||||
type hePsiThermo;
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
transport sutherland;
|
||||
thermo janaf;
|
||||
|
||||
@ -17,7 +17,7 @@ FoamFile
|
||||
|
||||
thermoType
|
||||
{
|
||||
type hePsiThermo;
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
transport sutherland;
|
||||
thermo janaf;
|
||||
|
||||
@ -17,7 +17,7 @@ FoamFile
|
||||
|
||||
thermoType
|
||||
{
|
||||
type hePsiThermo;
|
||||
type heRhoThermo;
|
||||
mixture reactingMixture;
|
||||
transport sutherland;
|
||||
thermo janaf;
|
||||
|
||||
Reference in New Issue
Block a user