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