41 template<
class BasicMomentumTransportModel>
64 gasTurbulencePtr_(
nullptr),
98 this->printCoeffs(type);
105 template<
class BasicMomentumTransportModel>
110 alphaInversion_.readIfPresent(this->coeffDict());
111 Cp_.readIfPresent(this->coeffDict());
112 Cmub_.readIfPresent(this->coeffDict());
123 template<
class BasicMomentumTransportModel>
126 typename BasicMomentumTransportModel::transportModel
130 if (!gasTurbulencePtr_)
136 const phaseModel& gas = fluid.otherPhase(liquid);
146 momentumTransportModel::typeName,
152 return *gasTurbulencePtr_;
156 template<
class BasicMomentumTransportModel>
160 gasTurbulence = this->gasTurbulence();
164 const phaseModel& gas = fluid.otherPhase(liquid);
168 + Cmub_*gas.
d()*gasTurbulence.
alpha()
169 *(
mag(this->U_ - gasTurbulence.
U()));
171 this->nut_.correctBoundaryConditions();
176 template<
class BasicMomentumTransportModel>
180 gasTurbulence = this->gasTurbulence();
184 const phaseModel& gas = fluid.otherPhase(liquid);
192 Cp_*
sqr(magUr)*drag.
K()/liquid.
rho()
199 template<
class BasicMomentumTransportModel>
211 max(alphaInversion_ - alpha, scalar(0))
215 this->Ce_*
sqrt(gasTurbulence.
k())/this->
delta(),
222 template<
class BasicMomentumTransportModel>
229 gasTurbulence = this->gasTurbulence();
231 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
235 + phaseTransferCoeff*gasTurbulence.
k()
236 -
fvm::Sp(phaseTransferCoeff, this->k_);
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
Templated abstract base class for multiphase compressible turbulence models.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
dimensionedScalar sqrt(const dimensionedScalar &ds)
virtual tmp< volScalarField > rho() const =0
Return the density field.
const word & name() const
Generic dimensioned Type class.
tmp< volScalarField > d() const
Return the Sauter-mean diameter.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Info<< "Reading strained laminar flame speed field Su\"<< endl;volScalarField Su(IOobject("Su", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field betav\"<< endl;volScalarField betav(IOobject("betav", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field Lobs\"<< endl;volScalarField Lobs(IOobject("Lobs", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field CT\"<< endl;volSymmTensorField CT(IOobject("CT", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field Nv\"<< endl;volScalarField Nv(IOobject("Nv", mesh.facesInstance(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE), mesh);Info<< "Reading field nsv\"<< 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
One equation eddy-viscosity model.
virtual tmp< volScalarField > K() const
Return the drag coefficient K.
Class to represent a system of phases and model interfacial transfers between them.
virtual bool read()
Read model coefficients if they have changed.
A class for handling words, derived from string.
NicenoKEqn(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &type=typeName)
Construct from components.
static word groupName(Name name, const word &group)
tmp< volScalarField > bubbleG() const
tmp< volScalarField > phaseTransferCoeff() const
virtual tmp< fvScalarMatrix > kSource() const
const alphaField & alpha() const
Access function to phase fraction.
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
BasicMomentumTransportModel::rhoField rhoField
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
Abstract base class for turbulence models (RAS, LES and laminar).
const volVectorField & U() const
Access function to velocity field.
One-equation SGS model for the continuous phase in a two-phase system including bubble-generated turb...
const Time & time() const
Return time.
const phaseSystem & fluid() const
Return the system to which this phase belongs.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
dimensioned< scalar > mag(const dimensioned< Type > &)
A class for managing temporary objects.
const objectRegistry & db() const
Return the local objectRegistry.
BasicMomentumTransportModel::transportModel transportModel
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
virtual void correctNut()
dimensionedScalar deltaT() const
Return time step.
BasicMomentumTransportModel::alphaField alphaField