30#include "twoPhaseSystem.H"
41template<
class BasicTurbulenceModel>
42continuousGasKEqn<BasicTurbulenceModel>::continuousGasKEqn
50 const word& propertiesName,
66 liquidTurbulencePtr_(
nullptr),
80 this->printCoeffs(
type);
87template<
class BasicTurbulenceModel>
92 alphaInversion_.readIfPresent(this->coeffDict());
101template<
class BasicTurbulenceModel>
105 if (!liquidTurbulencePtr_)
114 liquidTurbulencePtr_ =
125 return *liquidTurbulencePtr_;
129template<
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(),
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.
BasicTurbulenceModel::alphaField alphaField
const turbulenceModel & liquidTurbulence() const
Return the turbulence model for the liquid phase.
BasicTurbulenceModel::rhoField rhoField
dimensionedScalar alphaInversion_
tmp< volScalarField > phaseTransferCoeff() const
virtual tmp< fvScalarMatrix > kSource() const
BasicTurbulenceModel::transportModel transportModel
virtual bool read()
Read model coefficients if they have changed.
kEqn(const kEqn &)=delete
No copy construct.
virtual bool read()
Read model coefficients if they have changed.
Generic dimensioned Type class.
static dimensioned< Type > getOrAddToDict(const word &name, dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero))
Construct dimensioned from dictionary, with default value.
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
A class for managing temporary objects.
Base-class for all transport models used by the incompressible turbulence models.
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.
Namespace for LES SGS models.
zeroField Sp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
dimensionedScalar sqrt(const dimensionedScalar &ds)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.