41 template<
class BasicMomentumTransportModel>
53 kEqn<BasicMomentumTransportModel>
64 gasTurbulencePtr_(nullptr),
66 alphaInversion_(
"alphaInversion", this->coeffDict(), 0.3),
67 Cp_(
"Cp", this->coeffDict(), this->Ck_.value()),
68 Cmub_(
"Cmub", this->coeffDict(), 0.6)
74 template<
class BasicMomentumTransportModel>
79 alphaInversion_.readIfPresent(this->coeffDict());
80 Cp_.readIfPresent(this->coeffDict());
81 Cmub_.readIfPresent(this->coeffDict());
92 template<
class BasicMomentumTransportModel>
96 if (!gasTurbulencePtr_)
101 refCast<const phaseModel>(this->properties());
113 momentumTransportModel::typeName,
119 return *gasTurbulencePtr_;
123 template<
class BasicMomentumTransportModel>
127 this->gasTurbulence();
135 + Cmub_*gas.
d()*gasTurbulence.
alpha()
136 *(
mag(this->U_ - gasTurbulence.
U()));
138 this->nut_.correctBoundaryConditions();
143 template<
class BasicMomentumTransportModel>
147 this->gasTurbulence();
168 template<
class BasicMomentumTransportModel>
180 max(alphaInversion_ -
alpha, scalar(0))
184 this->Ce_*
sqrt(gasTurbulence.
k())/this->delta(),
185 1.0/
U.time().deltaT()
191 template<
class BasicMomentumTransportModel>
198 this->gasTurbulence();
200 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
204 + phaseTransferCoeff*gasTurbulence.
k()
205 -
fvm::Sp(phaseTransferCoeff, this->k_);
Generic GeometricField class.
static word groupName(Name name, const word &group)
One-equation SGS model for the continuous phase in a two-phase system including bubble-generated turb...
tmp< volScalarField > bubbleG() const
NicenoKEqn(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity, const word &type=typeName)
Construct from components.
tmp< volScalarField > phaseTransferCoeff() const
virtual void correctNut()
virtual tmp< fvScalarMatrix > kSource() const
virtual bool read()
Read model coefficients if they have changed.
One equation eddy-viscosity model.
BasicMomentumTransportModel::alphaField alphaField
BasicMomentumTransportModel::rhoField rhoField
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
Class to represent a interface between phases where one phase is considered dispersed within the othe...
Base class for Lagrangian drag models.
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
scalar rho(scalar p, scalar T) const
Liquid density [kg/m^3].
Abstract base class for turbulence models (RAS, LES and laminar).
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
const volVectorField & U() const
Access function to velocity field.
Templated abstract base class for multiphase compressible turbulence models.
const alphaField & alpha() const
Access function to phase fraction.
tmp< volScalarField > d() const
Return the Sauter-mean diameter.
const word & name() const
Return the name of this phase.
Class to represent a system of phases.
const phaseModel & otherPhase(const phaseModel &phase) const
Return the phase not given as an argument in a two-phase system.
const ModelType & lookupInterfacialModel(const phaseInterface &interface) const
Return a sub model for an interface.
A class for managing temporary objects.
Abstract base class for all fluid physical properties.
A class for handling words, derived from string.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
void sqr(LagrangianPatchField< typename outerProduct< Type, Type >::type > &f, const LagrangianPatchField< Type > &f1)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.