31#include "twoPhaseSystem.H"
43template<
class BasicTurbulenceModel>
52 const word& propertiesName,
68 gasTurbulencePtr_(nullptr),
110 if (
type == typeName)
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>
139 typename BasicTurbulenceModel::transportModel
143 if (!gasTurbulencePtr_)
149 refCast<const twoPhaseSystem>(
liquid.fluid());
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>
228 max(alphaInversion_ -
alpha, scalar(0))
230 *
min(gasTurbulence.
epsilon()/gasTurbulence.
k(), 1.0/
U.time().deltaT())
235template<
class BasicTurbulenceModel>
242 this->gasTurbulence();
244 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
248 + phaseTransferCoeff*gasTurbulence.
k()
249 -
fvm::Sp(phaseTransferCoeff, this->k_);
253template<
class BasicTurbulenceModel>
260 this->gasTurbulence();
262 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
265 alpha*
rho*this->C3_*this->epsilon_*bubbleG()/this->k_
266 + phaseTransferCoeff*gasTurbulence.
epsilon()
267 -
fvm::Sp(phaseTransferCoeff, this->epsilon_);
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.
Continuous-phase k-epsilon model including bubble-generated turbulence.
BasicTurbulenceModel::alphaField alphaField
virtual tmp< fvScalarMatrix > epsilonSource() const
BasicTurbulenceModel::rhoField rhoField
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
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.
Standard k-epsilon turbulence model for incompressible and compressible flows including rapid distort...
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
const alphaField & alpha() const
Access function to phase fraction.
const transportModel & transport() const
Access function to incompressible transport model.
Generic dimensioned Type class.
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.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
virtual tmp< volScalarField > epsilon() const =0
Return the turbulence kinetic energy dissipation rate.
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.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar pow3(const dimensionedScalar &ds)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
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