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 "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"
|
||||||
|
|||||||
@ -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],
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
thermoType
|
thermoType
|
||||||
{
|
{
|
||||||
type hePsiThermo;
|
type heRhoThermo;
|
||||||
mixture reactingMixture;
|
mixture reactingMixture;
|
||||||
transport sutherland;
|
transport sutherland;
|
||||||
thermo janaf;
|
thermo janaf;
|
||||||
|
|||||||
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
thermoType
|
thermoType
|
||||||
{
|
{
|
||||||
type hePsiThermo;
|
type heRhoThermo;
|
||||||
mixture reactingMixture;
|
mixture reactingMixture;
|
||||||
transport sutherland;
|
transport sutherland;
|
||||||
thermo janaf;
|
thermo janaf;
|
||||||
|
|||||||
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
thermoType
|
thermoType
|
||||||
{
|
{
|
||||||
type hePsiThermo;
|
type heRhoThermo;
|
||||||
mixture reactingMixture;
|
mixture reactingMixture;
|
||||||
transport sutherland;
|
transport sutherland;
|
||||||
thermo janaf;
|
thermo janaf;
|
||||||
|
|||||||
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
thermoType
|
thermoType
|
||||||
{
|
{
|
||||||
type hePsiThermo;
|
type heRhoThermo;
|
||||||
mixture reactingMixture;
|
mixture reactingMixture;
|
||||||
transport sutherland;
|
transport sutherland;
|
||||||
thermo janaf;
|
thermo janaf;
|
||||||
|
|||||||
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
thermoType
|
thermoType
|
||||||
{
|
{
|
||||||
type hePsiThermo;
|
type heRhoThermo;
|
||||||
mixture reactingMixture;
|
mixture reactingMixture;
|
||||||
transport sutherland;
|
transport sutherland;
|
||||||
thermo janaf;
|
thermo janaf;
|
||||||
|
|||||||
Reference in New Issue
Block a user