mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: basicSpecieThermo: Updated solver references to mixture class
This commit is contained in:
committed by
Andrew Heather
parent
22aae2816d
commit
2193c8e31a
@ -7,7 +7,7 @@ autoPtr<psiuReactionThermo> pThermo
|
|||||||
psiuReactionThermo& thermo = pThermo();
|
psiuReactionThermo& thermo = pThermo();
|
||||||
thermo.validate(args.executable(), "ha", "ea");
|
thermo.validate(args.executable(), "ha", "ea");
|
||||||
|
|
||||||
basicMultiComponentMixture& composition = thermo.composition();
|
basicSpecieMixture& composition = thermo.composition();
|
||||||
|
|
||||||
volScalarField rho
|
volScalarField rho
|
||||||
(
|
(
|
||||||
|
|||||||
@ -7,7 +7,7 @@ autoPtr<psiuReactionThermo> pThermo
|
|||||||
psiuReactionThermo& thermo = pThermo();
|
psiuReactionThermo& thermo = pThermo();
|
||||||
thermo.validate(args.executable(), "ha", "ea");
|
thermo.validate(args.executable(), "ha", "ea");
|
||||||
|
|
||||||
basicMultiComponentMixture& composition = thermo.composition();
|
basicSpecieMixture& composition = thermo.composition();
|
||||||
|
|
||||||
volScalarField rho
|
volScalarField rho
|
||||||
(
|
(
|
||||||
|
|||||||
@ -42,7 +42,7 @@ Description
|
|||||||
#include "chemistrySolver.H"
|
#include "chemistrySolver.H"
|
||||||
#include "OFstream.H"
|
#include "OFstream.H"
|
||||||
#include "thermoPhysicsTypes.H"
|
#include "thermoPhysicsTypes.H"
|
||||||
#include "basicMultiComponentMixture.H"
|
#include "basicSpecieMixture.H"
|
||||||
#include "cellModel.H"
|
#include "cellModel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -3,6 +3,6 @@ scalar dtChem = refCast<const BasicChemistryModel<psiReactionThermo>>
|
|||||||
(
|
(
|
||||||
chemistry
|
chemistry
|
||||||
).deltaTChem()[0];
|
).deltaTChem()[0];
|
||||||
basicMultiComponentMixture& composition = thermo.composition();
|
basicSpecieMixture& composition = thermo.composition();
|
||||||
PtrList<volScalarField>& Y = composition.Y();
|
PtrList<volScalarField>& Y = composition.Y();
|
||||||
volScalarField& p = thermo.p();
|
volScalarField& p = thermo.p();
|
||||||
|
|||||||
@ -5,7 +5,7 @@ thermo.validate(args.executable(), "h", "e");
|
|||||||
|
|
||||||
SLGThermo slgThermo(mesh, thermo);
|
SLGThermo slgThermo(mesh, thermo);
|
||||||
|
|
||||||
basicMultiComponentMixture& composition = thermo.composition();
|
basicSpecieMixture& composition = thermo.composition();
|
||||||
PtrList<volScalarField>& Y = composition.Y();
|
PtrList<volScalarField>& Y = composition.Y();
|
||||||
|
|
||||||
const word inertSpecie(thermo.lookup("inertSpecie"));
|
const word inertSpecie(thermo.lookup("inertSpecie"));
|
||||||
|
|||||||
@ -5,7 +5,7 @@ autoPtr<psiReactionThermo> pThermo(psiReactionThermo::New(mesh));
|
|||||||
psiReactionThermo& thermo = pThermo();
|
psiReactionThermo& thermo = pThermo();
|
||||||
thermo.validate(args.executable(), "h", "e");
|
thermo.validate(args.executable(), "h", "e");
|
||||||
|
|
||||||
basicMultiComponentMixture& composition = thermo.composition();
|
basicSpecieMixture& composition = thermo.composition();
|
||||||
PtrList<volScalarField>& Y = composition.Y();
|
PtrList<volScalarField>& Y = composition.Y();
|
||||||
|
|
||||||
const word inertSpecie(thermo.lookup("inertSpecie"));
|
const word inertSpecie(thermo.lookup("inertSpecie"));
|
||||||
|
|||||||
@ -5,7 +5,7 @@ autoPtr<rhoReactionThermo> pThermo(rhoReactionThermo::New(mesh));
|
|||||||
rhoReactionThermo& thermo = pThermo();
|
rhoReactionThermo& thermo = pThermo();
|
||||||
thermo.validate(args.executable(), "h", "e");
|
thermo.validate(args.executable(), "h", "e");
|
||||||
|
|
||||||
basicMultiComponentMixture& composition = thermo.composition();
|
basicSpecieMixture& composition = thermo.composition();
|
||||||
PtrList<volScalarField>& Y = composition.Y();
|
PtrList<volScalarField>& Y = composition.Y();
|
||||||
|
|
||||||
const word inertSpecie(thermo.lookup("inertSpecie"));
|
const word inertSpecie(thermo.lookup("inertSpecie"));
|
||||||
|
|||||||
@ -5,7 +5,7 @@ autoPtr<rhoReactionThermo> pThermo(rhoReactionThermo::New(mesh));
|
|||||||
rhoReactionThermo& thermo = pThermo();
|
rhoReactionThermo& thermo = pThermo();
|
||||||
thermo.validate(args.executable(), "h", "e");
|
thermo.validate(args.executable(), "h", "e");
|
||||||
|
|
||||||
basicMultiComponentMixture& composition = thermo.composition();
|
basicSpecieMixture& composition = thermo.composition();
|
||||||
PtrList<volScalarField>& Y = composition.Y();
|
PtrList<volScalarField>& Y = composition.Y();
|
||||||
|
|
||||||
const word inertSpecie(thermo.lookup("inertSpecie"));
|
const word inertSpecie(thermo.lookup("inertSpecie"));
|
||||||
|
|||||||
@ -67,7 +67,7 @@ Foam::TDACChemistryModel<ReactionThermo, ThermoType>::TDACChemistryModel
|
|||||||
dimensionedScalar(dimless, Zero)
|
dimensionedScalar(dimless, Zero)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
basicMultiComponentMixture& composition = this->thermo().composition();
|
basicSpecieMixture& composition = this->thermo().composition();
|
||||||
|
|
||||||
// Store the species composition according to the species index
|
// Store the species composition according to the species index
|
||||||
speciesTable speciesTab = composition.species();
|
speciesTable speciesTab = composition.species();
|
||||||
@ -611,7 +611,7 @@ Foam::scalar Foam::TDACChemistryModel<ReactionThermo, ThermoType>::solve
|
|||||||
|
|
||||||
label nAdditionalEqn = (tabulation_->variableTimeStep() ? 1 : 0);
|
label nAdditionalEqn = (tabulation_->variableTimeStep() ? 1 : 0);
|
||||||
|
|
||||||
basicMultiComponentMixture& composition = this->thermo().composition();
|
basicSpecieMixture& composition = this->thermo().composition();
|
||||||
|
|
||||||
// CPU time analysis
|
// CPU time analysis
|
||||||
const clockTime clockTime_= clockTime();
|
const clockTime clockTime_= clockTime();
|
||||||
|
|||||||
Reference in New Issue
Block a user