41 template<
class BasicMomentumTransportModel>
49 const viscosity& viscosity,
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>
127 if (!gasTurbulencePtr_)
132 refCast<const phaseModel>(this->properties());
134 const phaseModel& gas = fluid.otherPhase(liquid);
144 momentumTransportModel::typeName,
150 return *gasTurbulencePtr_;
154 template<
class BasicMomentumTransportModel>
158 this->gasTurbulence();
162 const phaseModel& gas = fluid.otherPhase(liquid);
166 + Cmub_*gas.
d()*gasTurbulence.
alpha()
167 *(
mag(this->U_ - gasTurbulence.
U()));
169 this->nut_.correctBoundaryConditions();
174 template<
class BasicMomentumTransportModel>
178 this->gasTurbulence();
182 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 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.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
const alphaField & alpha() const
Access function to phase fraction.
dimensionedScalar sqrt(const dimensionedScalar &ds)
virtual tmp< volScalarField > rho() const =0
Return the density field.
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
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.
One equation eddy-viscosity model.
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.
static word groupName(Name name, const word &group)
Info<< "Reading field p\"<< endl;volScalarField p(IOobject("p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);pressureReference pressureReference(p, simple.dict());mesh.schemes().setFluxRequired(p.name());Info<< "Reading field pa\"<< endl;volScalarField pa(IOobject("pa", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field Ua\"<< endl;volVectorField Ua(IOobject("Ua", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);# 65 "/home/ubuntu/OpenFOAM-10/applications/solvers/incompressible/adjointShapeOptimisationFoam/createFields.H" 2label paRefCell=0;scalar paRefValue=0.0;setRefCell(pa, simple.dict(), paRefCell, paRefValue);mesh.schemes().setFluxRequired(pa.name());autoPtr< viscosityModel > viscosity(viscosityModel::New(mesh))
tmp< volScalarField > bubbleG() const
tmp< volScalarField > phaseTransferCoeff() const
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
virtual tmp< fvScalarMatrix > kSource() const
Class to represent a interface between phases where one phase is considered dispersed within the othe...
NicenoKEqn(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity, const word &type=typeName)
Construct from components.
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
BasicMomentumTransportModel::rhoField rhoField
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 > &)
virtual tmp< volScalarField > K() const
Return the drag coefficient K.
A class for managing temporary objects.
const objectRegistry & db() const
Return the local objectRegistry.
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