mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
combustionModels: Minor cleanup
This commit is contained in:
@ -42,14 +42,14 @@ Foam::combustionModels::PaSR<Type>::PaSR
|
|||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject::groupName("PaSR:kappa", phaseName),
|
IOobject::groupName(typeName + ":kappa", phaseName),
|
||||||
mesh.time().timeName(),
|
mesh.time().timeName(),
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar("kappa", dimless, 0.0)
|
dimensionedScalar("kappa", dimless, 0)
|
||||||
)
|
)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -72,10 +72,13 @@ void Foam::combustionModels::PaSR<Type>::correct()
|
|||||||
|
|
||||||
tmp<volScalarField> tepsilon(this->turbulence().epsilon());
|
tmp<volScalarField> tepsilon(this->turbulence().epsilon());
|
||||||
const scalarField& epsilon = tepsilon();
|
const scalarField& epsilon = tepsilon();
|
||||||
|
|
||||||
tmp<volScalarField> tmuEff(this->turbulence().muEff());
|
tmp<volScalarField> tmuEff(this->turbulence().muEff());
|
||||||
const scalarField& muEff = tmuEff();
|
const scalarField& muEff = tmuEff();
|
||||||
|
|
||||||
tmp<volScalarField> ttc(this->tc());
|
tmp<volScalarField> ttc(this->tc());
|
||||||
const scalarField& tc = ttc();
|
const scalarField& tc = ttc();
|
||||||
|
|
||||||
tmp<volScalarField> trho(this->rho());
|
tmp<volScalarField> trho(this->rho());
|
||||||
const scalarField& rho = trho();
|
const scalarField& rho = trho();
|
||||||
|
|
||||||
@ -113,7 +116,7 @@ Foam::combustionModels::PaSR<Type>::Qdot() const
|
|||||||
(
|
(
|
||||||
new volScalarField
|
new volScalarField
|
||||||
(
|
(
|
||||||
IOobject::groupName("PaSR:dQ", this->phaseName_),
|
IOobject::groupName(typeName + ":Qdot", this->phaseName_),
|
||||||
kappa_*laminar<Type>::Qdot()
|
kappa_*laminar<Type>::Qdot()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -25,10 +25,11 @@ Class
|
|||||||
Foam::combustionModels::PaSR
|
Foam::combustionModels::PaSR
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Partially stirred reactor combustion model. The model calculates a finite
|
Partially stirred reactor turbulent combustion model.
|
||||||
rate, based on both turbulence and chemistry time scales. Depending on
|
|
||||||
mesh resolution, the Cmix parameter can be used to scale the turbulence
|
This model calculates a finite rate, based on both turbulence and chemistry
|
||||||
mixing time scale.
|
time scales. Depending on mesh resolution, the Cmix parameter can be used
|
||||||
|
to scale the turbulence mixing time scale.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
PaSR.C
|
PaSR.C
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -52,9 +52,7 @@ Foam::combustionModels::noCombustion<CombThermoType>::~noCombustion()
|
|||||||
|
|
||||||
template<class CombThermoType>
|
template<class CombThermoType>
|
||||||
void Foam::combustionModels::noCombustion<CombThermoType>::correct()
|
void Foam::combustionModels::noCombustion<CombThermoType>::correct()
|
||||||
{
|
{}
|
||||||
// Do Nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<class CombThermoType>
|
template<class CombThermoType>
|
||||||
@ -83,7 +81,7 @@ Foam::combustionModels::noCombustion<CombThermoType>::Qdot() const
|
|||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject::groupName("Qdot", this->phaseName_),
|
IOobject::groupName(typeName + ":Qdot", this->phaseName_),
|
||||||
this->mesh().time().timeName(),
|
this->mesh().time().timeName(),
|
||||||
this->mesh(),
|
this->mesh(),
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
|
|||||||
Reference in New Issue
Block a user