30 #include "twoPhaseSystem.H" 41 template<
class BasicTurbulenceModel>
50 const word& propertiesName,
66 liquidTurbulencePtr_(
nullptr),
80 this->printCoeffs(
type);
87 template<
class BasicTurbulenceModel>
92 alphaInversion_.readIfPresent(this->coeffDict());
101 template<
class BasicTurbulenceModel>
105 if (!liquidTurbulencePtr_)
111 refCast<const twoPhaseSystem>(gas.fluid());
114 liquidTurbulencePtr_ =
125 return *liquidTurbulencePtr_;
129 template<
class BasicTurbulenceModel>
134 const alphaField&
alpha = this->alpha_;
135 const rhoField&
rho = this->rho_;
141 max(alphaInversion_ -
alpha, scalar(0))
145 this->Ce_*
sqrt(liquidTurbulence.
k())/this->
delta(),
152 template<
class BasicTurbulenceModel>
157 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
160 phaseTransferCoeff*liquidTurbulence.
k()
161 -
fvm::Sp(phaseTransferCoeff, this->k_);
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Generic dimensioned Type class.
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.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
BasicTurbulenceModel::alphaField alphaField
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
zeroField Sp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
const Time & time() const noexcept
Return Time associated with the objectRegistry.
virtual tmp< fvScalarMatrix > kSource() const
virtual bool read()
Read model coefficients if they have changed.
tmp< volScalarField > phaseTransferCoeff() const
virtual bool read()
Read model coefficients if they have changed.
One-equation SGS model for the gas-phase in a two-phase system supporting phase-inversion.
BasicTurbulenceModel::transportModel transportModel
Base-class for all transport models used by the incompressible turbulence models. ...
A class for managing temporary objects.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
BasicTurbulenceModel::rhoField rhoField
dimensionedScalar deltaT() const
Return time step.