31#include "twoPhaseSystem.H"
43template<
class BasicTurbulenceModel>
44NicenoKEqn<BasicTurbulenceModel>::NicenoKEqn
52 const word& propertiesName,
68 gasTurbulencePtr_(
nullptr),
102 this->printCoeffs(
type);
109template<
class BasicTurbulenceModel>
114 alphaInversion_.readIfPresent(this->coeffDict());
115 Cp_.readIfPresent(this->coeffDict());
116 Cmub_.readIfPresent(this->coeffDict());
125template<
class BasicTurbulenceModel>
126const PhaseCompressibleTurbulenceModel
128 typename BasicTurbulenceModel::transportModel
130NicenoKEqn<BasicTurbulenceModel>::gasTurbulence()
const
132 if (!gasTurbulencePtr_)
136 const transportModel& liquid = this->transport();
137 const twoPhaseSystem&
fluid =
139 const transportModel& gas =
fluid.otherPhase(liquid);
143 .lookupObject<PhaseCompressibleTurbulenceModel<transportModel>>
153 return *gasTurbulencePtr_;
157template<
class BasicTurbulenceModel>
161 this->gasTurbulence();
166 *(
mag(this->U_ - gasTurbulence.
U()));
171 BasicTurbulenceModel::correctNut();
175template<
class BasicTurbulenceModel>
179 this->gasTurbulence();
199template<
class BasicTurbulenceModel>
204 const alphaField&
alpha = this->alpha_;
205 const rhoField&
rho = this->rho_;
211 max(alphaInversion_ -
alpha, scalar(0))
215 this->Ce_*
sqrt(gasTurbulence.
k())/this->delta(),
216 1.0/
U.time().deltaT()
222template<
class BasicTurbulenceModel>
225 const alphaField&
alpha = this->alpha_;
226 const rhoField&
rho = this->rho_;
229 this->gasTurbulence();
231 const volScalarField phaseTransferCoeff(this->phaseTransferCoeff());
235 + phaseTransferCoeff*gasTurbulence.
k()
236 -
fvm::Sp(phaseTransferCoeff, this->k_);
void correctBoundaryConditions()
Correct boundary field.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
BasicTurbulenceModel::alphaField alphaField
BasicTurbulenceModel::rhoField rhoField
dimensionedScalar alphaInversion_
tmp< volScalarField > bubbleG() const
tmp< volScalarField > phaseTransferCoeff() const
virtual void correctNut()
virtual tmp< fvScalarMatrix > kSource() const
BasicTurbulenceModel::transportModel transportModel
virtual bool read()
Read model coefficients if they have changed.
kEqn(const kEqn &)=delete
No copy construct.
virtual bool read()
Read model coefficients if they have changed.
Templated abstract base class for multiphase compressible turbulence models.
const alphaField & alpha() const
Access function to phase fraction.
const transportModel & transport() const
Access function to incompressible transport model.
Generic dimensioned Type class.
static dimensioned< Type > getOrAddToDict(const word &name, dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero))
Construct dimensioned from dictionary, with default value.
void correct(GeometricField< Type, PatchField, GeoMesh > &field)
Apply correction to field.
static options & New(const fvMesh &mesh)
Construct fvOptions and register to database if not present otherwise lookup and return.
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].
A class for managing temporary objects.
Base-class for all transport models used by the incompressible turbulence models.
Abstract base class for turbulence models (RAS, LES and laminar).
const volVectorField & U() const
Access function to velocity field.
static const word propertiesName
Default name of the turbulence properties dictionary.
virtual tmp< volScalarField > k() const =0
Return the turbulence kinetic energy.
Class which solves the volume fraction equations for two phases.
A class for handling words, derived from Foam::string.
Namespace for LES SGS models.
zeroField Sp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
GeometricField< vector, fvPatchField, volMesh > volVectorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Info<< "Reading strained laminar flame speed field Su\n"<< endl;volScalarField Su(IOobject("Su", runTime.timeName(), 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