38 template<
class BasicMomentumTransportModel>
45 this->nut_.correctBoundaryConditions();
50 template<
class BasicMomentumTransportModel>
51 tmp<volScalarField::Internal> kOmega2006<BasicMomentumTransportModel>::beta
62 modelName(
"ChiOmega"),
63 mag((Omega & Omega) && Shat)/
pow3(betaStar_*omega_.v())
69 (1 + 85*ChiOmega)/(1 + 100*ChiOmega)
76 template<
class BasicMomentumTransportModel>
77 tmp<volScalarField::Internal>
78 kOmega2006<BasicMomentumTransportModel>::CDkOmega()
const 90 template<
class BasicMomentumTransportModel>
97 template<
class BasicMomentumTransportModel>
105 dimVolume*this->rho_.dimensions()*k_.dimensions()
112 template<
class BasicMomentumTransportModel>
128 template<
class BasicMomentumTransportModel>
220 this->runTime_.timeName(),
232 this->runTime_.timeName(),
240 bound(k_, this->kMin_);
241 bound(omega_, this->omegaMin_);
243 if (type == typeName)
245 this->printCoeffs(type);
252 template<
class BasicMomentumTransportModel>
257 betaStar_.readIfPresent(this->coeffDict());
258 beta0_.readIfPresent(this->coeffDict());
259 gamma_.readIfPresent(this->coeffDict());
260 sigmaDo_.readIfPresent(this->coeffDict());
261 alphaK_.readIfPresent(this->coeffDict());
262 alphaOmega_.readIfPresent(this->coeffDict());
273 template<
class BasicMomentumTransportModel>
276 if (!this->turbulence_)
309 omega_.boundaryFieldRef().updateCoeffs();
318 gamma_*
alpha()*
rho()*G*omega_()/k_()
323 + fvModels.source(alpha, rho, omega_)
326 omegaEqn.
ref().relax();
328 omegaEqn.ref().boundaryManipulate(omega_.boundaryFieldRef());
331 bound(omega_, this->omegaMin_);
345 + fvModels.source(alpha, rho, k_)
352 bound(k_, this->kMin_);
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
virtual tmp< fvScalarMatrix > kSource() const
fvMatrix< scalar > fvScalarMatrix
tmp< fvMatrix< Type > > SuSp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
kOmega2006(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &type=typeName)
Construct from components.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual bool read()
Read RASProperties dictionary.
dimensionedTensor skew(const dimensionedTensor &dt)
T & ref() const
Return non-const reference or generate a fatal error.
GeometricField< tensor, fvPatchField, volMesh > volTensorField
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
dimensionedScalar sqrt(const dimensionedScalar &ds)
const dimensionSet dimless
Generic dimensioned Type class.
const dimensionedScalar G
Newtonian constant of gravitation.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
Eddy viscosity turbulence model base class.
DimensionedField< symmTensor, volMesh > Internal
Type of the internal field from which this GeometricField is derived.
BasicMomentumTransportModel::transportModel transportModel
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
Templated abstract base class for RAS turbulence models.
const dimensionSet dimTime
bool read(const char *, int32_t &)
const Internal & v() const
Return a const-reference to the dimensioned internal field.
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
static const Identity< scalar > I
Foam::fvConstraints & fvConstraints
BasicMomentumTransportModel::alphaField alphaField
A class for handling words, derived from string.
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-9/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H" 1{ alphav=max(min((rho - rholSat)/(rhovSat - rholSat), scalar(1)), scalar(0));alphal=1.0 - alphav;Info<< "max-min alphav: "<< max(alphav).value()<< " "<< min(alphav).value()<< endl;psiModel-> correct()
tmp< fvMatrix< Type > > S(const Pair< tmp< volScalarField::Internal >> &, const GeometricField< Type, fvPatchField, volMesh > &)
static word groupName(Name name, const word &group)
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Bound the given scalar field if it has gone unbounded.
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
virtual void correctNut()
tmp< volScalarField > divU
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
Foam::fvModels & fvModels
dimensionedScalar pow3(const dimensionedScalar &ds)
virtual tmp< fvScalarMatrix > omegaSource() const
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &tphi, const volVectorField &U)
Return the given relative flux in absolute form.
volScalarField & bound(volScalarField &, const dimensionedScalar &lowerBound)
Bound the given scalar field if it has gone unbounded.
Finite volume constraints.
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
BasicMomentumTransportModel::rhoField rhoField
const dimensionSet dimVolume
SolverPerformance< Type > solve(fvMatrix< Type > &, const word &)
Solve returning the solution statistics given convergence tolerance.
dimensioned< scalar > mag(const dimensioned< Type > &)
A class for managing temporary objects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...