31#include "twoPhaseSystem.H"
43template<
class BasicTurbulenceModel>
52 const word& propertiesName,
56 kEqn<BasicTurbulenceModel>
68 gasTurbulencePtr_(nullptr),
100 if (
type == typeName)
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>
128 typename BasicTurbulenceModel::transportModel
132 if (!gasTurbulencePtr_)
138 refCast<const twoPhaseSystem>(
liquid.fluid());
153 return *gasTurbulencePtr_;
157template<
class BasicTurbulenceModel>
161 this->gasTurbulence();
166 *(
mag(this->U_ - gasTurbulence.
U()));
171 BasicTurbulenceModel::correctNut();
175template<
class BasicTurbulenceModel>
179 this->gasTurbulence();
183 refCast<const twoPhaseSystem>(
liquid.fluid());
199template<
class BasicTurbulenceModel>
211 max(alphaInversion_ -
alpha, scalar(0))
215 this->Ce_*
sqrt(gasTurbulence.
k())/this->delta(),
216 1.0/
U.time().deltaT()
222template<
class BasicTurbulenceModel>
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.
One-equation SGS model for the continuous phase in a two-phase system including bubble-generated turb...
BasicTurbulenceModel::alphaField alphaField
BasicTurbulenceModel::rhoField rhoField
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.
One equation eddy-viscosity model.
Templated abstract base class for multiphase compressible turbulence models.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
const alphaField & alpha() const
Access function to phase fraction.
const transportModel & transport() const
Access function to incompressible transport model.
Generic dimensioned Type class.
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.
zeroField Sp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
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