40 template<
class BasicMomentumTransportModel>
63 gasTurbulencePtr_(
nullptr),
97 this->printCoeffs(type);
104 template<
class BasicMomentumTransportModel>
109 alphaInversion_.readIfPresent(this->coeffDict());
110 Cp_.readIfPresent(this->coeffDict());
111 Cmub_.readIfPresent(this->coeffDict());
122 template<
class BasicMomentumTransportModel>
125 typename BasicMomentumTransportModel::transportModel
129 if (!gasTurbulencePtr_)
145 momentumTransportModel::typeName,
151 return *gasTurbulencePtr_;
155 template<
class BasicMomentumTransportModel>
159 gasTurbulence = this->gasTurbulence();
164 *(
mag(this->U_ - gasTurbulence.
U()));
166 this->nut_.correctBoundaryConditions();
171 template<
class BasicMomentumTransportModel>
175 gasTurbulence = this->gasTurbulence();
187 Cp_*
sqr(magUr)*drag.
K()/liquid.rho()
194 template<
class BasicMomentumTransportModel>
206 max(alphaInversion_ - alpha, scalar(0))
210 this->Ce_*
sqrt(gasTurbulence.
k())/this->
delta(),
217 template<
class BasicMomentumTransportModel>
224 gasTurbulence = this->gasTurbulence();
226 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
230 + phaseTransferCoeff*gasTurbulence.
k()
231 -
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.
const transportModel & transport() const
Access function to incompressible transport model.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
Apply correction to field.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const modelType & lookupSubModel(const phasePair &key) const
Return a sub model between a phase pair.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Generic dimensioned Type class.
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
const phaseModel & otherPhase(const phaseModel &phase) const
Return the phase not given as an argument in a two-phase system.
virtual tmp< fvScalarMatrix > kSource() const
const alphaField & alpha() const
Access function to phase fraction.
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.
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 > &)
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
A class for managing temporary objects.
static options & New(const fvMesh &mesh)
Construct fvOptions and register to datbase if not present.
const objectRegistry & db() const
Return the local objectRegistry.
BasicMomentumTransportModel::transportModel transportModel
virtual void correctNut()
dimensionedScalar deltaT() const
Return time step.
BasicMomentumTransportModel::alphaField alphaField