39 template<
class BasicTurbulenceModel>
42 this->nut_ = k_/omega_;
43 this->nut_.correctBoundaryConditions();
46 BasicTurbulenceModel::correctNut();
52 template<
class BasicTurbulenceModel>
61 const word& propertiesName,
128 this->runTime_.timeName(),
140 this->runTime_.timeName(),
148 bound(k_, this->kMin_);
149 bound(omega_, this->omegaMin_);
151 if (type == typeName)
153 this->printCoeffs(type);
160 template<
class BasicTurbulenceModel>
165 Cmu_.readIfPresent(this->coeffDict());
166 beta_.readIfPresent(this->coeffDict());
167 gamma_.readIfPresent(this->coeffDict());
168 alphaK_.readIfPresent(this->coeffDict());
169 alphaOmega_.readIfPresent(this->coeffDict());
180 template<
class BasicTurbulenceModel>
183 if (!this->turbulence_)
209 omega_.boundaryFieldRef().updateCoeffs();
218 gamma_*alpha*rho*G*omega_/k_
219 -
fvm::SuSp(((2.0/3.0)*gamma_)*alpha*rho*divU, omega_)
220 -
fvm::Sp(beta_*alpha*rho*omega_, omega_)
224 omegaEqn.
ref().relax();
226 omegaEqn.
ref().boundaryManipulate(omega_.boundaryFieldRef());
229 bound(omega_, this->omegaMin_);
240 -
fvm::SuSp((2.0/3.0)*alpha*rho*divU, k_)
241 -
fvm::Sp(Cmu_*alpha*rho*omega_, k_)
249 bound(k_, this->kMin_);
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
BasicTurbulenceModel::transportModel transportModel
kOmega(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName, const word &type=typeName)
Construct from components.
tmp< fvMatrix< Type > > Sp(const DimensionedField< scalar, volMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
Apply correction to field.
const dimensionedScalar G
Newtonian constant of gravitation.
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Generic dimensioned Type class.
BasicTurbulenceModel::alphaField alphaField
Eddy viscosity turbulence model base class.
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
Templated abstract base class for RAS turbulence models.
void clear() const
If object pointer points to valid object:
bool read(const char *, int32_t &)
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
tmp< fvMatrix< Type > > SuSp(const DimensionedField< scalar, volMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)
BasicTurbulenceModel::rhoField rhoField
A class for handling words, derived from string.
SolverPerformance< Type > solve(fvMatrix< Type > &, const dictionary &)
Solve returning the solution statistics given convergence tolerance.
static word groupName(Name name, const word &group)
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
void constrain(fvMatrix< Type > &eqn)
Apply constraints to equation.
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(psi *p+alphal *rhol0+((alphav *psiv+alphal *psil)-psi)*pSat, rhoMin);#1"/home/ubuntu/OpenFOAM-4.1/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.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
volScalarField divU(fvc::div(fvc::absolute(phi, U)))
A class for managing temporary objects.
static options & New(const fvMesh &mesh)
Construct fvOptions and register to datbase if not present.
T & ref() const
Return non-const reference or generate a fatal error.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...