30 template<
class ReactionThermo>
33 const word& modelType,
34 ReactionThermo& thermo,
36 const word& combustionProperties
44 this->coeffs().lookupOrDefault
51 C1_(this->coeffs().lookupOrDefault(
"C1", 0.05774)),
52 C2_(this->coeffs().lookupOrDefault(
"C2", 0.5)),
53 Cgamma_(this->coeffs().lookupOrDefault(
"Cgamma", 2.1377)),
54 Ctau_(this->coeffs().lookupOrDefault(
"Ctau", 0.4083)),
55 exp1_(this->coeffs().lookupOrDefault(
"exp1",
EDCexp1[
int(version_)])),
56 exp2_(this->coeffs().lookupOrDefault(
"exp2",
EDCexp2[
int(version_)])),
61 this->
thermo().phasePropertyName(typeName +
":kappa"),
75 template<
class ReactionThermo>
82 template<
class ReactionThermo>
101 if (version_ == EDCversions::v2016)
108 const scalar
nu = mu[i]/(rho[i] + small);
111 max(
min(
sqrt(nu/(epsilon[i] + small))/tc[i], 10), 1
e-10);
113 const scalar ReT =
sqr(k[i])/(nu*epsilon[i] + small);
114 const scalar CtauI =
min(C1_/(Da*
sqrt(ReT + 1)), 2.1377);
116 const scalar CgammaI =
119 const scalar gammaL =
120 CgammaI*
pow025(nu*epsilon[i]/(
sqr(k[i]) + small));
122 tauStar[i] = CtauI*
sqrt(nu/(epsilon[i] + small));
135 pow(gammaL, exp1_)/(1 -
pow(gammaL, exp2_)),
147 const scalar
nu = mu[i]/(rho[i] + small);
148 const scalar gammaL =
149 Cgamma_*
pow025(nu*epsilon[i]/(
sqr(k[i]) + small));
151 tauStar[i] = Ctau_*
sqrt(nu/(epsilon[i] + small));
163 pow(gammaL, exp1_)/(1 -
pow(gammaL, exp2_)),
172 this->chemistryPtr_->solve(tauStar);
177 template<
class ReactionThermo>
185 template<
class ReactionThermo>
195 this->
thermo().phasePropertyName(typeName +
":Qdot"),
209 tQdot.
ref() = kappa_*this->chemistryPtr_->Qdot();
216 template<
class ReactionThermo>
225 this->coeffs().lookupOrDefault
232 C1_ = this->coeffs().lookupOrDefault(
"C1", 0.05774);
233 C2_ = this->coeffs().lookupOrDefault(
"C2", 0.5);
234 Cgamma_ = this->coeffs().lookupOrDefault(
"Cgamma", 2.1377);
235 Ctau_ = this->coeffs().lookupOrDefault(
"Ctau", 0.4083);
236 exp1_ = this->coeffs().lookupOrDefault(
"exp1",
EDCexp1[
int(version_)]);
237 exp2_ = this->coeffs().lookupOrDefault(
"exp2",
EDCexp2[
int(version_)]);
#define forAll(list, i)
Loop across all elements in list.
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
T & ref() const
Return non-const reference or generate a fatal error.
virtual bool read()
Update properties from given dictionary.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
void size(const label)
Override size to be inconsistent with allocated storage.
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensionedScalar pow025(const dimensionedScalar &ds)
tmp< volScalarField > trho
label k
Boltzmann constant.
rhoReactionThermo & thermo
const dimensionSet dimVolume(pow3(dimLength))
Laminar combustion model.
const dimensionedScalar e
Elementary charge.
A class for handling words, derived from string.
Abstract base class for turbulence models (RAS, LES and laminar).
Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar("pos", dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
Eddy Dissipation Concept (EDC) turbulent combustion model.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
const dimensionSet dimEnergy
const NamedEnum< EDCversions, 4 > EDCversionNames
const dimensionedScalar mu
Atomic mass unit.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
#define R(A, B, C, D, E, F, K, M)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
PtrList< volScalarField > & Y
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s3].
virtual ~EDC()
Destructor.
virtual void correct()
Correct combustion rate.
A class for managing temporary objects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...