27 #include "twoPhaseSystem.H" 38 template<
class BasicTurbulenceModel>
47 const word& propertiesName,
63 liquidTurbulencePtr_(
nullptr),
77 this->printCoeffs(type);
84 template<
class BasicTurbulenceModel>
89 alphaInversion_.readIfPresent(this->coeffDict());
100 template<
class BasicTurbulenceModel>
104 if (!liquidTurbulencePtr_)
110 refCast<const twoPhaseSystem>(gas.fluid());
113 liquidTurbulencePtr_ =
124 return *liquidTurbulencePtr_;
128 template<
class BasicTurbulenceModel>
140 max(alphaInversion_ - alpha, scalar(0))
144 this->Ce_*
sqrt(liquidTurbulence.
k())/this->
delta(),
151 template<
class BasicTurbulenceModel>
156 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
159 phaseTransferCoeff*liquidTurbulence.
k()
160 -
fvm::Sp(phaseTransferCoeff, this->k_);
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar sqrt(const dimensionedScalar &ds)
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).
One equation eddy-viscosity model.
const turbulenceModel & liquidTurbulence() const
Return the turbulence model for the liquid phase.
Class which solves the volume fraction equations for two phases.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
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)
BasicTurbulenceModel::alphaField alphaField
const phaseModel & otherPhase(const phaseModel &phase) const
Return the phase not given as an argument.
virtual tmp< fvScalarMatrix > kSource() const
tmp< volScalarField > phaseTransferCoeff() const
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
virtual bool read()
Read model coefficients if they have changed.
BasicTurbulenceModel::transportModel transportModel
const Time & time() const
Return time.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
continuousGasKEqn(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.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
A class for managing temporary objects.
const objectRegistry & db() const
Return the local objectRegistry.
BasicTurbulenceModel::rhoField rhoField
dimensionedScalar deltaT() const
Return time step.