39 template<
class BasicMomentumTransportModel>
42 this->nut_ = k_/omega_;
43 this->nut_.correctBoundaryConditions();
48 template<
class BasicMomentumTransportModel>
56 dimVolume*this->rho_.dimensions()*k_.dimensions()
63 template<
class BasicMomentumTransportModel>
79 template<
class BasicMomentumTransportModel>
153 this->runTime_.timeName(),
165 this->runTime_.timeName(),
173 bound(k_, this->kMin_);
174 bound(omega_, this->omegaMin_);
176 if (type == typeName)
178 this->printCoeffs(type);
185 template<
class BasicMomentumTransportModel>
190 Cmu_.readIfPresent(this->coeffDict());
191 beta_.readIfPresent(this->coeffDict());
192 gamma_.readIfPresent(this->coeffDict());
193 alphaK_.readIfPresent(this->coeffDict());
194 alphaOmega_.readIfPresent(this->coeffDict());
205 template<
class BasicMomentumTransportModel>
208 if (!this->turbulence_)
232 nut.
v()*(
dev(
twoSymm(tgradU().v())) && tgradU().v())
237 omega_.boundaryFieldRef().updateCoeffs();
246 gamma_*
alpha()*
rho()*G*omega_()/k_()
253 omegaEqn.
ref().relax();
255 omegaEqn.
ref().boundaryManipulate(omega_.boundaryFieldRef());
258 bound(omega_, this->omegaMin_);
279 bound(k_, this->kMin_);
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
fvMatrix< scalar > fvScalarMatrix
tmp< fvMatrix< Type > > SuSp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
void clear() const
If object pointer points to valid object:
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
Apply correction to field.
T & ref() const
Return non-const reference or generate a fatal error.
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Generic dimensioned Type class.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
Eddy viscosity turbulence model base class.
BasicMomentumTransportModel::rhoField rhoField
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
Templated abstract base class for RAS turbulence models.
const dimensionSet dimVolume(pow3(dimLength))
bool read(const char *, int32_t &)
const Internal & v() const
Return a const-reference to the dimensioned internal field.
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
A class for handling words, derived from string.
static word groupName(Name name, const word &group)
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
BasicMomentumTransportModel::alphaField alphaField
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
void constrain(fvMatrix< Type > &eqn)
Apply constraints to equation.
kOmega(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.
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.
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-8/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()
virtual void correctNut()
virtual bool read()
Read RASProperties dictionary.
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.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
BasicMomentumTransportModel::transportModel transportModel
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...
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
virtual tmp< fvScalarMatrix > kSource() const
SolverPerformance< Type > solve(fvMatrix< Type > &, const word &)
Solve returning the solution statistics given convergence tolerance.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
A class for managing temporary objects.
static options & New(const fvMesh &mesh)
Construct fvOptions and register to datbase if not present.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const dimensionedScalar & G
Newtonian constant of gravitation.
virtual tmp< fvScalarMatrix > omegaSource() const