27 #include "twoPhaseSystem.H" 38 template<
class BasicTurbulenceModel>
39 continuousGasKEqn<BasicTurbulenceModel>::continuousGasKEqn
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
Constant access 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.
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
BasicTurbulenceModel::transportModel transportModel
const Time & time() const
Return time.
A class for managing temporary objects.
const objectRegistry & db() const
Return the local objectRegistry.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
BasicTurbulenceModel::rhoField rhoField
dimensionedScalar deltaT() const
Return time step.