28 #include "twoPhaseSystem.H" 29 #include "dragModel.H" 30 #include "virtualMassModel.H" 41 template<
class BasicTurbulenceModel>
50 const word& propertiesName,
66 liquidTurbulencePtr_(
nullptr),
73 this->runTime_.timeName(),
93 this->printCoeffs(type);
100 template<
class BasicTurbulenceModel>
105 alphaInversion_.readIfPresent(this->coeffDict());
116 template<
class BasicTurbulenceModel>
136 exp(
min(thetal/thetag, scalar(50))),
142 nutEff_ = omega*liquidTurbulence.
nut();
147 template<
class BasicTurbulenceModel>
151 if (!liquidTurbulencePtr_)
157 refCast<const twoPhaseSystem>(gas.fluid());
160 liquidTurbulencePtr_ =
171 return *liquidTurbulencePtr_;
175 template<
class BasicTurbulenceModel>
185 (this->alpha_ - scalar(0.5))/(alphaInversion_ - 0.5),
196 + (1.0 - blend)*rhoEff()*nutEff_/this->transport().rho()
202 template<
class BasicTurbulenceModel>
216 gas.rho() + (virtualMass.
Cvm() + 3.0/20.0)*liquid.rho()
221 template<
class BasicTurbulenceModel>
233 max(alphaInversion_ - alpha, scalar(0))
237 liquidTurbulence.
epsilon()/liquidTurbulence.
k(),
244 template<
class BasicTurbulenceModel>
249 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
252 phaseTransferCoeff*liquidTurbulence.
k()
253 -
fvm::Sp(phaseTransferCoeff, this->k_);
257 template<
class BasicTurbulenceModel>
262 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
265 phaseTransferCoeff*liquidTurbulence.
epsilon()
266 -
fvm::Sp(phaseTransferCoeff, this->epsilon_);
270 template<
class BasicTurbulenceModel>
280 tk().boundaryField().types()
BasicTurbulenceModel::transportModel transportModel
const modelType & lookupSubModel(const phasePair &key) const
Access a sub model between a phase pair.
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
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
Apply correction to field.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
virtual bool read()
Re-read model coefficients if they have changed.
label k
Boltzmann constant.
continuousGasKEpsilon(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName, const word &type=typeName)
Construct from components.
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.
Abstract base class for turbulence models (RAS, LES and laminar).
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
Class which solves the volume fraction equations for two phases.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Mesh &, const dimensionSet &, const word &patchFieldType=fvPatchField< scalar >::calculatedType())
Return a temporary field constructed from name, mesh, dimensionSet.
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...
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from string.
static word groupName(Name name, const word &group)
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
virtual tmp< fvScalarMatrix > kSource() const
const phaseModel & otherPhase(const phaseModel &phase) const
Return the phase not given as an argument.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
virtual tmp< volScalarField > Cvm() const =0
Return the virtual mass coefficient.
virtual tmp< volSymmTensorField > R() const
Return the Reynolds stress tensor.
BasicTurbulenceModel::alphaField alphaField
tmp< volScalarField > phaseTransferCoeff() const
const Time & time() const
Return time.
virtual tmp< volScalarField > epsilon() const =0
Return the turbulence kinetic energy dissipation rate.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
virtual void correctNut()
BasicTurbulenceModel::rhoField rhoField
virtual tmp< volScalarField > rhoEff() const
Return the effective density for the stress.
const turbulenceModel & liquidTurbulence() const
Return the turbulence model for the liquid phase.
virtual void correctNut()
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
virtual tmp< volScalarField > nut() const =0
Return the turbulence viscosity.
A class for managing temporary objects.
static options & New(const fvMesh &mesh)
Construct fvOptions and register to datbase if not present.
const objectRegistry & db() const
Return the local objectRegistry.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
dimensionedScalar deltaT() const
Return time step.