PaSR: Removed deprecated "turbulentReaction" switch
To run with laminar reaction rates choose the "laminar" combustion model rather than setting "turbulentReaction no;" in the "PaSR" model.
This commit is contained in:
parent
3ca17d43a2
commit
1e36c99588
@ -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
|
||||
@ -24,7 +24,6 @@ License
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "PaSR.H"
|
||||
#include "fvmSup.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
@ -39,7 +38,6 @@ Foam::combustionModels::PaSR<Type>::PaSR
|
||||
:
|
||||
laminar<Type>(modelType, mesh, combustionProperties, phaseName),
|
||||
Cmix_(readScalar(this->coeffs().lookup("Cmix"))),
|
||||
turbulentReaction_(this->coeffs().lookup("turbulentReaction")),
|
||||
kappa_
|
||||
(
|
||||
IOobject
|
||||
@ -72,35 +70,28 @@ void Foam::combustionModels::PaSR<Type>::correct()
|
||||
{
|
||||
laminar<Type>::correct();
|
||||
|
||||
if (turbulentReaction_)
|
||||
{
|
||||
tmp<volScalarField> tepsilon(this->turbulence().epsilon());
|
||||
const volScalarField& epsilon = tepsilon();
|
||||
tmp<volScalarField> tmuEff(this->turbulence().muEff());
|
||||
const volScalarField& muEff = tmuEff();
|
||||
tmp<volScalarField> ttc(this->tc());
|
||||
const volScalarField& tc = ttc();
|
||||
tmp<volScalarField> trho(this->rho());
|
||||
const volScalarField& rho = trho();
|
||||
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();
|
||||
|
||||
forAll(epsilon, i)
|
||||
forAll(epsilon, i)
|
||||
{
|
||||
const scalar tk =
|
||||
Cmix_*sqrt(max(muEff[i]/rho[i]/(epsilon[i] + SMALL), 0));
|
||||
|
||||
if (tk > SMALL)
|
||||
{
|
||||
scalar tk =
|
||||
Cmix_*sqrt(max(muEff[i]/rho[i]/(epsilon[i] + SMALL), 0));
|
||||
|
||||
if (tk > SMALL)
|
||||
{
|
||||
kappa_[i] = tc[i]/(tc[i] + tk);
|
||||
}
|
||||
else
|
||||
{
|
||||
kappa_[i] = 1.0;
|
||||
}
|
||||
kappa_[i] = tc[i]/(tc[i] + tk);
|
||||
}
|
||||
else
|
||||
{
|
||||
kappa_[i] = 1.0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
kappa_ = 1.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -135,7 +126,6 @@ bool Foam::combustionModels::PaSR<Type>::read()
|
||||
if (laminar<Type>::read())
|
||||
{
|
||||
this->coeffs().lookup("Cmix") >> Cmix_;
|
||||
this->coeffs().lookup("turbulentReaction") >> turbulentReaction_;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
@ -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
|
||||
@ -61,9 +61,6 @@ class PaSR
|
||||
//- Mixing constant
|
||||
scalar Cmix_;
|
||||
|
||||
//- Turbulent reaction switch
|
||||
Switch turbulentReaction_;
|
||||
|
||||
//- Mixing parameter
|
||||
volScalarField kappa_;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2017 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -170,8 +170,8 @@ bool Foam::combustionModels::laminar<Type>::read()
|
||||
{
|
||||
if (Type::read())
|
||||
{
|
||||
this->coeffs().lookup("integrateReactionRate")
|
||||
>> integrateReactionRate_;
|
||||
integrateReactionRate_ =
|
||||
this->coeffs().lookupOrDefault("integrateReactionRate", true);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
@ -23,8 +23,6 @@ chemistryType
|
||||
|
||||
chemistry off;
|
||||
|
||||
turbulentReaction off;
|
||||
|
||||
initialChemicalTimeStep 1e-07;
|
||||
|
||||
|
||||
|
@ -19,11 +19,9 @@ combustionModel PaSR<psiChemistryCombustion>;
|
||||
|
||||
active true;
|
||||
|
||||
|
||||
PaSRCoeffs
|
||||
{
|
||||
Cmix 1.0;
|
||||
turbulentReaction on;
|
||||
}
|
||||
|
||||
|
||||
|
@ -22,7 +22,6 @@ active false;
|
||||
PaSRCoeffs
|
||||
{
|
||||
Cmix 1.0;
|
||||
turbulentReaction on;
|
||||
}
|
||||
|
||||
|
||||
|
@ -15,15 +15,12 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
combustionModel PaSR<psiChemistryCombustion>;
|
||||
combustionModel laminar<psiChemistryCombustion>;
|
||||
|
||||
active false;
|
||||
|
||||
PaSRCoeffs
|
||||
{
|
||||
Cmix 1.0;
|
||||
turbulentReaction off;
|
||||
}
|
||||
laminarCoeffs
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -15,15 +15,12 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
combustionModel PaSR<psiChemistryCombustion>;
|
||||
combustionModel laminar<psiChemistryCombustion>;
|
||||
|
||||
active false;
|
||||
|
||||
PaSRCoeffs
|
||||
{
|
||||
Cmix 1.0;
|
||||
turbulentReaction off;
|
||||
}
|
||||
laminarCoeffs
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -15,15 +15,12 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
combustionModel PaSR<psiChemistryCombustion>;
|
||||
combustionModel laminar<psiChemistryCombustion>;
|
||||
|
||||
active false;
|
||||
|
||||
PaSRCoeffs
|
||||
{
|
||||
Cmix 1.0;
|
||||
turbulentReaction off;
|
||||
}
|
||||
laminarCoeffs
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -15,15 +15,12 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
combustionModel PaSR<rhoChemistryCombustion>;
|
||||
combustionModel laminar<rhoChemistryCombustion>;
|
||||
|
||||
active false;
|
||||
|
||||
PaSRCoeffs
|
||||
{
|
||||
Cmix 1.0;
|
||||
turbulentReaction off;
|
||||
}
|
||||
laminarCoeffs
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -15,15 +15,12 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
combustionModel PaSR<rhoChemistryCombustion>;
|
||||
combustionModel laminar<rhoChemistryCombustion>;
|
||||
|
||||
active false;
|
||||
|
||||
PaSRCoeffs
|
||||
{
|
||||
Cmix 1.0;
|
||||
turbulentReaction off;
|
||||
}
|
||||
laminarCoeffs
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -15,15 +15,12 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
combustionModel PaSR<rhoChemistryCombustion>;
|
||||
combustionModel laminar<rhoChemistryCombustion>;
|
||||
|
||||
active false;
|
||||
|
||||
PaSRCoeffs
|
||||
{
|
||||
Cmix 1.0;
|
||||
turbulentReaction off;
|
||||
}
|
||||
laminarCoeffs
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -15,15 +15,12 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
combustionModel PaSR<rhoChemistryCombustion>;
|
||||
combustionModel laminar<rhoChemistryCombustion>;
|
||||
|
||||
active false;
|
||||
|
||||
PaSRCoeffs
|
||||
{
|
||||
Cmix 0.1;
|
||||
turbulentReaction off;
|
||||
}
|
||||
laminarCoeffs
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -15,15 +15,11 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
combustionModel PaSR<rhoChemistryCombustion>;
|
||||
combustionModel laminar<rhoChemistryCombustion>;
|
||||
|
||||
active false;
|
||||
|
||||
PaSRCoeffs
|
||||
{
|
||||
Cmix 0.1;
|
||||
turbulentReaction off;
|
||||
}
|
||||
|
||||
laminarCoeffs
|
||||
{}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -22,7 +22,6 @@ active yes;
|
||||
PaSRCoeffs
|
||||
{
|
||||
Cmix 1.0;
|
||||
turbulentReaction yes;
|
||||
}
|
||||
|
||||
|
||||
|
@ -15,22 +15,19 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
combustionModel PaSR<rhoChemistryCombustion>;
|
||||
combustionModel PaSR<rhoChemistryCombustion>;
|
||||
|
||||
active true;
|
||||
active true;
|
||||
|
||||
laminarCoeffs
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
noCombustionCoeffs
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
PaSRCoeffs
|
||||
{
|
||||
Cmix 1.0;
|
||||
turbulentReaction yes;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -15,9 +15,9 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
combustionModel PaSR<rhoChemistryCombustion>;
|
||||
combustionModel PaSR<rhoChemistryCombustion>;
|
||||
|
||||
active false;
|
||||
active false;
|
||||
|
||||
laminarCoeffs
|
||||
{}
|
||||
@ -28,7 +28,6 @@ noCombustionCoeffs
|
||||
PaSRCoeffs
|
||||
{
|
||||
Cmix 1.0;
|
||||
turbulentReaction yes;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
@ -15,9 +15,9 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
combustionModel PaSR<rhoChemistryCombustion>;
|
||||
combustionModel PaSR<rhoChemistryCombustion>;
|
||||
|
||||
active false;
|
||||
active false;
|
||||
|
||||
laminarCoeffs
|
||||
{}
|
||||
@ -28,7 +28,6 @@ noCombustionCoeffs
|
||||
PaSRCoeffs
|
||||
{
|
||||
Cmix 1.0;
|
||||
turbulentReaction yes;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
Loading…
Reference in New Issue
Block a user