41 template<
class BasicMomentumTransportModel>
53 kEqn<BasicMomentumTransportModel>
64 gasTurbulencePtr_(nullptr),
66 alphaInversion_(
"alphaInversion", this->typeDict(
type), 0.3),
67 Cp_(
"Cp", this->typeDict(
type), this->Ck_.value()),
68 Cmub_(
"Cmub", this->typeDict(
type), 0.6)
74 template<
class BasicMomentumTransportModel>
79 alphaInversion_.readIfPresent(this->typeDict());
80 Cp_.readIfPresent(this->typeDict());
81 Cmub_.readIfPresent(this->typeDict());
92 template<
class BasicMomentumTransportModel>
96 if (!gasTurbulencePtr_)
101 refCast<const phaseModel>(this->properties());
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_);
static fvConstraints & New(const word &name, const fvMesh &mesh)
Construct and return the named DemandDrivenMeshObject.
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
Class to represent a interface between phases where one phase is considered dispersed within the othe...
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
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 momentum transport 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 momentum transport 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.
Info<< "Reading strained laminar flame speed field Su\n"<< endl;volScalarField Su(IOobject("Su", runTime.name(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field betav\n"<< endl;volScalarField betav(IOobject("betav", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field Lobs\n"<< endl;volScalarField Lobs(IOobject("Lobs", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field CT\n"<< endl;volSymmTensorField CT(IOobject("CT", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field Nv\n"<< endl;volScalarField Nv(IOobject("Nv", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field nsv\n"<< endl;volSymmTensorField nsv(IOobject("nsv", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);IOdictionary PDRProperties(IOobject("PDRProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));autoPtr< PDRDragModel > drag
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 > &)
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
tmp< DimensionedField< typename outerProduct< Type, Type >::type, GeoMesh, Field >> sqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.