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:
Henry Weller
2017-01-20 17:17:14 +00:00
parent 3ca17d43a2
commit 1e36c99588
18 changed files with 56 additions and 105 deletions

View File

@ -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
@ -24,7 +24,6 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "PaSR.H" #include "PaSR.H"
#include "fvmSup.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
@ -39,7 +38,6 @@ Foam::combustionModels::PaSR<Type>::PaSR
: :
laminar<Type>(modelType, mesh, combustionProperties, phaseName), laminar<Type>(modelType, mesh, combustionProperties, phaseName),
Cmix_(readScalar(this->coeffs().lookup("Cmix"))), Cmix_(readScalar(this->coeffs().lookup("Cmix"))),
turbulentReaction_(this->coeffs().lookup("turbulentReaction")),
kappa_ kappa_
( (
IOobject IOobject
@ -72,20 +70,18 @@ void Foam::combustionModels::PaSR<Type>::correct()
{ {
laminar<Type>::correct(); laminar<Type>::correct();
if (turbulentReaction_)
{
tmp<volScalarField> tepsilon(this->turbulence().epsilon()); tmp<volScalarField> tepsilon(this->turbulence().epsilon());
const volScalarField& epsilon = tepsilon(); const scalarField& epsilon = tepsilon();
tmp<volScalarField> tmuEff(this->turbulence().muEff()); tmp<volScalarField> tmuEff(this->turbulence().muEff());
const volScalarField& muEff = tmuEff(); const scalarField& muEff = tmuEff();
tmp<volScalarField> ttc(this->tc()); tmp<volScalarField> ttc(this->tc());
const volScalarField& tc = ttc(); const scalarField& tc = ttc();
tmp<volScalarField> trho(this->rho()); tmp<volScalarField> trho(this->rho());
const volScalarField& rho = trho(); const scalarField& rho = trho();
forAll(epsilon, i) forAll(epsilon, i)
{ {
scalar tk = const scalar tk =
Cmix_*sqrt(max(muEff[i]/rho[i]/(epsilon[i] + SMALL), 0)); Cmix_*sqrt(max(muEff[i]/rho[i]/(epsilon[i] + SMALL), 0));
if (tk > SMALL) if (tk > SMALL)
@ -98,11 +94,6 @@ void Foam::combustionModels::PaSR<Type>::correct()
} }
} }
} }
else
{
kappa_ = 1.0;
}
}
} }
@ -135,7 +126,6 @@ bool Foam::combustionModels::PaSR<Type>::read()
if (laminar<Type>::read()) if (laminar<Type>::read())
{ {
this->coeffs().lookup("Cmix") >> Cmix_; this->coeffs().lookup("Cmix") >> Cmix_;
this->coeffs().lookup("turbulentReaction") >> turbulentReaction_;
return true; return true;
} }
else else

View File

@ -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
@ -61,9 +61,6 @@ class PaSR
//- Mixing constant //- Mixing constant
scalar Cmix_; scalar Cmix_;
//- Turbulent reaction switch
Switch turbulentReaction_;
//- Mixing parameter //- Mixing parameter
volScalarField kappa_; volScalarField kappa_;

View File

@ -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) 2013-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2017 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -170,8 +170,8 @@ bool Foam::combustionModels::laminar<Type>::read()
{ {
if (Type::read()) if (Type::read())
{ {
this->coeffs().lookup("integrateReactionRate") integrateReactionRate_ =
>> integrateReactionRate_; this->coeffs().lookupOrDefault("integrateReactionRate", true);
return true; return true;
} }
else else

View File

@ -23,8 +23,6 @@ chemistryType
chemistry off; chemistry off;
turbulentReaction off;
initialChemicalTimeStep 1e-07; initialChemicalTimeStep 1e-07;

View File

@ -19,11 +19,9 @@ combustionModel PaSR<psiChemistryCombustion>;
active true; active true;
PaSRCoeffs PaSRCoeffs
{ {
Cmix 1.0; Cmix 1.0;
turbulentReaction on;
} }

View File

@ -22,7 +22,6 @@ active false;
PaSRCoeffs PaSRCoeffs
{ {
Cmix 1.0; Cmix 1.0;
turbulentReaction on;
} }

View File

@ -15,15 +15,12 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<psiChemistryCombustion>; combustionModel laminar<psiChemistryCombustion>;
active false; active false;
PaSRCoeffs laminarCoeffs
{ {}
Cmix 1.0;
turbulentReaction off;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -15,15 +15,12 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<psiChemistryCombustion>; combustionModel laminar<psiChemistryCombustion>;
active false; active false;
PaSRCoeffs laminarCoeffs
{ {}
Cmix 1.0;
turbulentReaction off;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -15,15 +15,12 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<psiChemistryCombustion>; combustionModel laminar<psiChemistryCombustion>;
active false; active false;
PaSRCoeffs laminarCoeffs
{ {}
Cmix 1.0;
turbulentReaction off;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -15,15 +15,12 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<rhoChemistryCombustion>; combustionModel laminar<rhoChemistryCombustion>;
active false; active false;
PaSRCoeffs laminarCoeffs
{ {}
Cmix 1.0;
turbulentReaction off;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -15,15 +15,12 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<rhoChemistryCombustion>; combustionModel laminar<rhoChemistryCombustion>;
active false; active false;
PaSRCoeffs laminarCoeffs
{ {}
Cmix 1.0;
turbulentReaction off;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -15,15 +15,12 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<rhoChemistryCombustion>; combustionModel laminar<rhoChemistryCombustion>;
active false; active false;
PaSRCoeffs laminarCoeffs
{ {}
Cmix 1.0;
turbulentReaction off;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -15,15 +15,12 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<rhoChemistryCombustion>; combustionModel laminar<rhoChemistryCombustion>;
active false; active false;
PaSRCoeffs laminarCoeffs
{ {}
Cmix 0.1;
turbulentReaction off;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -15,15 +15,11 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
combustionModel PaSR<rhoChemistryCombustion>; combustionModel laminar<rhoChemistryCombustion>;
active false; active false;
PaSRCoeffs laminarCoeffs
{ {}
Cmix 0.1;
turbulentReaction off;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -22,7 +22,6 @@ active yes;
PaSRCoeffs PaSRCoeffs
{ {
Cmix 1.0; Cmix 1.0;
turbulentReaction yes;
} }

View File

@ -20,17 +20,14 @@ combustionModel PaSR<rhoChemistryCombustion>;
active true; active true;
laminarCoeffs laminarCoeffs
{ {}
}
noCombustionCoeffs noCombustionCoeffs
{ {}
}
PaSRCoeffs PaSRCoeffs
{ {
Cmix 1.0; Cmix 1.0;
turbulentReaction yes;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,7 +28,6 @@ noCombustionCoeffs
PaSRCoeffs PaSRCoeffs
{ {
Cmix 1.0; Cmix 1.0;
turbulentReaction yes;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,7 +28,6 @@ noCombustionCoeffs
PaSRCoeffs PaSRCoeffs
{ {
Cmix 1.0; Cmix 1.0;
turbulentReaction yes;
} }
// ************************************************************************* // // ************************************************************************* //