28 #include "twoPhaseSystem.H" 29 #include "dragModel.H" 30 #include "virtualMassModel.H" 41 template<
class BasicTurbulenceModel>
42 continuousGasKEpsilon<BasicTurbulenceModel>::continuousGasKEpsilon
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),
198 + (1.0 - blend)*rhoEff()*nutEff_/this->transport().rho()
205 template<
class BasicTurbulenceModel>
221 gas.rho() + (virtualMass.
Cvm() + 3.0/20.0)*liquid.rho()
227 template<
class BasicTurbulenceModel>
239 max(alphaInversion_ - alpha, scalar(0))
243 liquidTurbulence.
epsilon()/liquidTurbulence.
k(),
250 template<
class BasicTurbulenceModel>
255 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
258 phaseTransferCoeff*liquidTurbulence.
k()
259 -
fvm::Sp(phaseTransferCoeff, this->k_);
263 template<
class BasicTurbulenceModel>
268 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
271 phaseTransferCoeff*liquidTurbulence.
epsilon()
272 -
fvm::Sp(phaseTransferCoeff, this->epsilon_);
276 template<
class BasicTurbulenceModel>
289 this->runTime_.timeName(),
295 tk().boundaryField().types()
BasicTurbulenceModel::transportModel transportModel
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
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.
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.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
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.
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
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.
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()
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.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
dimensionedScalar deltaT() const
Return time step.