30#include "twoPhaseSystem.H"
41template<
class BasicTurbulenceModel>
50 const word& propertiesName,
54 kEqn<BasicTurbulenceModel>
66 liquidTurbulencePtr_(nullptr),
80 this->printCoeffs(
type);
87template<
class BasicTurbulenceModel>
92 alphaInversion_.readIfPresent(this->coeffDict());
101template<
class BasicTurbulenceModel>
105 if (!liquidTurbulencePtr_)
111 refCast<const twoPhaseSystem>(gas.fluid());
114 liquidTurbulencePtr_ =
125 return *liquidTurbulencePtr_;
129template<
class BasicTurbulenceModel>
141 max(alphaInversion_ -
alpha, scalar(0))
145 this->Ce_*
sqrt(liquidTurbulence.
k())/this->delta(),
146 1.0/
U.time().deltaT()
152template<
class BasicTurbulenceModel>
157 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
160 phaseTransferCoeff*liquidTurbulence.
k()
161 -
fvm::Sp(phaseTransferCoeff, this->k_);
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
One-equation SGS model for the gas-phase in a two-phase system supporting phase-inversion.
BasicTurbulenceModel::alphaField alphaField
const turbulenceModel & liquidTurbulence() const
Return the turbulence model for the liquid phase.
BasicTurbulenceModel::rhoField rhoField
tmp< volScalarField > phaseTransferCoeff() const
virtual tmp< fvScalarMatrix > kSource() const
BasicTurbulenceModel::transportModel transportModel
virtual bool read()
Read model coefficients if they have changed.
One equation eddy-viscosity model.
Generic dimensioned Type class.
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
A class for managing temporary objects.
Abstract base class for turbulence models (RAS, LES and laminar).
static const word propertiesName
Default name of the turbulence properties dictionary.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
Class which solves the volume fraction equations for two phases.
A class for handling words, derived from Foam::string.
zeroField Sp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
dimensionedScalar sqrt(const dimensionedScalar &ds)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.