31#include "twoPhaseSystem.H"
43template<
class BasicTurbulenceModel>
44LaheyKEpsilon<BasicTurbulenceModel>::LaheyKEpsilon
52 const word& propertiesName,
56 kEpsilon<BasicTurbulenceModel>
68 gasTurbulencePtr_(
nullptr),
112 this->printCoeffs(
type);
119template<
class BasicTurbulenceModel>
124 alphaInversion_.readIfPresent(this->coeffDict());
125 Cp_.readIfPresent(this->coeffDict());
126 C3_.readIfPresent(this->coeffDict());
127 Cmub_.readIfPresent(this->coeffDict());
136template<
class BasicTurbulenceModel>
137const PhaseCompressibleTurbulenceModel
139 typename BasicTurbulenceModel::transportModel
141LaheyKEpsilon<BasicTurbulenceModel>::gasTurbulence()
const
143 if (!gasTurbulencePtr_)
147 const transportModel& liquid = this->transport();
148 const twoPhaseSystem&
fluid =
150 const transportModel& gas =
fluid.otherPhase(liquid);
154 .lookupObject<PhaseCompressibleTurbulenceModel<transportModel>>
164 return *gasTurbulencePtr_;
168template<
class BasicTurbulenceModel>
172 this->gasTurbulence();
175 this->Cmu_*
sqr(this->k_)/this->epsilon_
177 *(
mag(this->U_ - gasTurbulence.
U()));
182 BasicTurbulenceModel::correctNut();
186template<
class BasicTurbulenceModel>
190 this->gasTurbulence();
216template<
class BasicTurbulenceModel>
221 const alphaField&
alpha = this->alpha_;
222 const rhoField&
rho = this->rho_;
228 max(alphaInversion_ -
alpha, scalar(0))
230 *
min(gasTurbulence.epsilon()/gasTurbulence.k(), 1.0/
U.time().deltaT())
235template<
class BasicTurbulenceModel>
238 const alphaField&
alpha = this->alpha_;
239 const rhoField&
rho = this->rho_;
242 this->gasTurbulence();
244 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
253template<
class BasicTurbulenceModel>
256 const alphaField&
alpha = this->alpha_;
257 const rhoField&
rho = this->rho_;
260 this->gasTurbulence();
262 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
271template<
class BasicTurbulenceModel>
void correctBoundaryConditions()
Correct boundary field.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
Templated abstract base class for multiphase compressible turbulence models.
BasicTurbulenceModel::alphaField alphaField
virtual tmp< fvScalarMatrix > epsilonSource() const
BasicTurbulenceModel::rhoField rhoField
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
dimensionedScalar alphaInversion_
tmp< volScalarField > bubbleG() const
tmp< volScalarField > phaseTransferCoeff() const
virtual void correctNut()
virtual tmp< fvScalarMatrix > kSource() const
BasicTurbulenceModel::transportModel transportModel
virtual bool read()
Read model coefficients if they have changed.
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
virtual bool read()
Re-read model coefficients if they have changed.
const alphaField & alpha() const
Access function to phase fraction.
const transportModel & transport() const
Access function to incompressible transport model.
Generic dimensioned Type class.
static dimensioned< Type > getOrAddToDict(const word &name, dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero))
Construct dimensioned from dictionary, with default value.
void correct(GeometricField< Type, PatchField, GeoMesh > &field)
Apply correction to field.
static options & New(const fvMesh &mesh)
Construct fvOptions and register to database if not present otherwise lookup and return.
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
A class for managing temporary objects.
Base-class for all transport models used by the incompressible turbulence models.
Abstract base class for turbulence models (RAS, LES and laminar).
const volVectorField & U() const
Access function to velocity field.
static const word propertiesName
Default name of the turbulence properties dictionary.
Class which solves the volume fraction equations for two phases.
A class for handling words, derived from Foam::string.
zeroField Sp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar pow3(const dimensionedScalar &ds)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Info<< "Reading strained laminar flame speed field Su\n"<< endl;volScalarField Su(IOobject("Su", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field betav\n"<< endl;volScalarField betav(IOobject("betav", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field Lobs\n"<< endl;volScalarField Lobs(IOobject("Lobs", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field CT\n"<< endl;volSymmTensorField CT(IOobject("CT", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field Nv\n"<< endl;volScalarField Nv(IOobject("Nv", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field nsv\n"<< endl;volSymmTensorField nsv(IOobject("nsv", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);IOdictionary PDRProperties(IOobject("PDRProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));autoPtr< PDRDragModel > drag