28 #include "twoPhaseSystem.H" 29 #include "dragModel.H" 40 template<
class BasicTurbulenceModel>
49 const word& propertiesName,
65 gasTurbulencePtr_(
nullptr),
99 this->printCoeffs(type);
106 template<
class BasicTurbulenceModel>
111 alphaInversion_.readIfPresent(this->coeffDict());
112 Cp_.readIfPresent(this->coeffDict());
113 Cmub_.readIfPresent(this->coeffDict());
124 template<
class BasicTurbulenceModel>
127 typename BasicTurbulenceModel::transportModel
131 if (!gasTurbulencePtr_)
137 refCast<const twoPhaseSystem>(liquid.fluid());
152 return *gasTurbulencePtr_;
156 template<
class BasicTurbulenceModel>
160 this->gasTurbulence();
165 *(
mag(this->U_ - gasTurbulence.
U()));
167 this->nut_.correctBoundaryConditions();
170 BasicTurbulenceModel::correctNut();
174 template<
class BasicTurbulenceModel>
178 this->gasTurbulence();
182 refCast<const twoPhaseSystem>(liquid.fluid());
191 Cp_*
sqr(magUr)*drag.
K()/liquid.rho()
198 template<
class BasicTurbulenceModel>
210 max(alphaInversion_ - alpha, scalar(0))
214 this->Ce_*
sqrt(gasTurbulence.
k())/this->
delta(),
221 template<
class BasicTurbulenceModel>
228 this->gasTurbulence();
230 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
234 + phaseTransferCoeff*gasTurbulence.
k()
235 -
fvm::Sp(phaseTransferCoeff, this->k_);
const modelType & lookupSubModel(const phasePair &key) const
Access a sub model between a phase pair.
BasicTurbulenceModel::alphaField alphaField
const volVectorField & U() const
Access function to velocity field.
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)
dimensionedScalar sqrt(const dimensionedScalar &ds)
Generic dimensioned Type class.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
BasicTurbulenceModel::rhoField rhoField
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
Abstract base class for turbulence models (RAS, LES and laminar).
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.
Class which solves the volume fraction equations for two phases.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
const transportModel & transport() const
Access function to incompressible transport model.
static const word propertiesName
Default name of the turbulence properties dictionary.
virtual bool read()
Read model coefficients if they have changed.
A class for handling words, derived from string.
static word groupName(Name name, const word &group)
tmp< volScalarField > bubbleG() const
tmp< volScalarField > phaseTransferCoeff() const
const alphaField & alpha() const
Access function to phase fraction.
virtual tmp< fvScalarMatrix > kSource() const
NicenoKEqn(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName, const word &type=typeName)
Construct from components.
Templated abstract base class for multiphase compressible turbulence models.
const phaseModel & otherPhase(const phaseModel &phase) const
Return the phase not given as an argument.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
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.
BasicTurbulenceModel::transportModel transportModel
virtual tmp< volScalarField > K(const volScalarField &Ur) const =0
The dragfunction K used in the momentum eq.
virtual void correctNut()
dimensionedScalar deltaT() const
Return time step.