39 template<
class BasicMomentumTransportModel>
62 gasTurbulencePtr_(
nullptr),
76 this->printCoeffs(type);
83 template<
class BasicMomentumTransportModel>
88 Cmub_.readIfPresent(this->coeffDict());
99 template<
class BasicMomentumTransportModel>
103 if (!gasTurbulencePtr_)
108 refCast<const phaseModel>(this->properties());
110 const phaseModel& gas = fluid.otherPhase(liquid);
120 momentumTransportModel::typeName,
126 return *gasTurbulencePtr_;
130 template<
class BasicMomentumTransportModel>
134 this->gasTurbulence();
138 const phaseModel& gas = fluid.otherPhase(liquid);
144 + Cmub_*gas.
d()*gasTurbulence.
alpha()
145 *(
mag(this->U_ - gasTurbulence.
U()));
147 this->nut_.correctBoundaryConditions();
Generic thermophysical properties class for a liquid in which the functions and coefficients for each...
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
BasicMomentumTransportModel::rhoField rhoField
Templated abstract base class for multiphase compressible turbulence models.
The Smagorinsky SGS model including bubble-generated turbulence.
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)
const word & name() const
label k
Boltzmann constant.
Generic dimensioned Type class.
tmp< volScalarField > d() const
Return the Sauter-mean diameter.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
The Smagorinsky SGS model.
Class to represent a system of phases and model interfacial transfers between them.
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))
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
Abstract base class for all fluid physical properties.
virtual bool read()
Read model coefficients if they have changed.
const volVectorField & U() const
Access function to velocity field.
BasicMomentumTransportModel::alphaField alphaField
SmagorinskyZhang(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.
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 > &)
const objectRegistry & db() const
Return the local objectRegistry.
virtual void correctNut()
Update the SGS eddy viscosity.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...