42 template<
class BasicMomentumTransportModel>
65 liquidTurbulencePtr_(
nullptr),
72 this->runTime_.timeName(),
92 this->printCoeffs(type);
99 template<
class BasicMomentumTransportModel>
104 alphaInversion_.readIfPresent(this->coeffDict());
115 template<
class BasicMomentumTransportModel>
122 const phaseModel& gas = refCast<const phaseModel>(this->transport());
139 exp(
min(thetal/thetag, scalar(50))),
145 nutEff_ = omega*liquidTurbulence.
nut();
150 template<
class BasicMomentumTransportModel>
154 if (!liquidTurbulencePtr_)
158 const phaseModel& gas = refCast<const phaseModel>(this->transport());
162 liquidTurbulencePtr_ =
167 momentumTransportModel::typeName,
173 return *liquidTurbulencePtr_;
177 template<
class BasicMomentumTransportModel>
187 (this->alpha_ - scalar(0.5))/(alphaInversion_ - 0.5),
198 + (1.0 - blend)*rhoEff()*nutEff_/this->rho_
204 template<
class BasicMomentumTransportModel>
208 const phaseModel& gas = refCast<const phaseModel>(this->transport());
218 gas.rho() + (virtualMass.
Cvm() + 3.0/20.0)*liquid.
rho()
223 template<
class BasicMomentumTransportModel>
235 max(alphaInversion_ - alpha, scalar(0))
239 liquidTurbulence.
epsilon()/liquidTurbulence.
k(),
246 template<
class BasicMomentumTransportModel>
251 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
254 phaseTransferCoeff*liquidTurbulence.
k()
255 -
fvm::Sp(phaseTransferCoeff, this->k_);
259 template<
class BasicMomentumTransportModel>
264 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
267 phaseTransferCoeff*liquidTurbulence.
epsilon()
268 -
fvm::Sp(phaseTransferCoeff, this->epsilon_);
272 template<
class BasicMomentumTransportModel>
282 tk().boundaryField().types()
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual tmp< fvScalarMatrix > epsilonSource() const
dimensionedSymmTensor sqr(const dimensionedVector &dv)
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
virtual tmp< volScalarField > rho() const =0
Return the density field.
const word & name() const
virtual bool read()
Re-read model coefficients if they have changed.
label k
Boltzmann constant.
Generic dimensioned Type class.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
dimensionedScalar exp(const dimensionedScalar &ds)
static const Identity< scalar > I
Standard k-epsilon turbulence model for incompressible and compressible flows including rapid distort...
Class to represent a system of phases and model interfacial transfers between them.
A class for handling words, derived from string.
const rhoThermo & thermo() const
Return const-access to phase rhoThermo.
static word groupName(Name name, const word &group)
BasicMomentumTransportModel::alphaField alphaField
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
virtual tmp< fvScalarMatrix > kSource() const
virtual tmp< volScalarField > nut() const =0
Return the turbulence viscosity.
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
virtual tmp< volScalarField > Cvm() const =0
Return the virtual mass coefficient.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
Abstract base class for turbulence models (RAS, LES and laminar).
continuousGasKEpsilon(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &type=typeName)
Construct from components.
const momentumTransportModel & liquidTurbulence() const
Return the turbulence model for the liquid phase.
tmp< volScalarField > phaseTransferCoeff() const
const Time & time() const
Return time.
const phaseSystem & fluid() const
Return the system to which this phase belongs.
BasicMomentumTransportModel::rhoField rhoField
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
virtual tmp< volSymmTensorField > sigma() const
Return the stress tensor [m^2/s^2].
BasicMomentumTransportModel::transportModel transportModel
virtual tmp< volScalarField > nu() const
Kinematic viscosity of mixture [m^2/s].
virtual void correctNut()
virtual tmp< volScalarField > rhoEff() const
Return the effective density for the stress.
virtual void correctNut()
A class for managing temporary objects.
const objectRegistry & db() const
Return the local objectRegistry.
virtual tmp< volScalarField > epsilon() const =0
Return the turbulence kinetic energy dissipation rate.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
dimensionedScalar deltaT() const
Return time step.