40 template<
class BasicTurbulenceModel>
43 return nuTilda_/this->
nu();
47 template<
class BasicTurbulenceModel>
54 return chi3/(chi3 +
pow3(Cv1_));
58 template<
class BasicTurbulenceModel>
65 return 1.0 - chi/(1.0 + chi*fv1);
69 template<
class BasicTurbulenceModel>
83 + fv2(chi, fv1)*nuTilda_/
sqr(kappa_*y_),
90 template<
class BasicTurbulenceModel>
120 template<
class BasicTurbulenceModel>
126 this->nut_ = nuTilda_*fv1;
130 BasicTurbulenceModel::correctNut();
134 template<
class BasicTurbulenceModel>
137 correctNut(fv1(this->chi()));
143 template<
class BasicTurbulenceModel>
152 const word& propertiesName,
205 Cw1_(Cb1_/
sqr(kappa_) + (1.0 + Cb2_)/sigmaNut_),
248 this->runTime_.timeName(),
258 if (type == typeName)
260 this->printCoeffs(type);
267 template<
class BasicTurbulenceModel>
272 sigmaNut_.readIfPresent(this->coeffDict());
273 kappa_.readIfPresent(this->coeffDict());
275 Cb1_.readIfPresent(this->coeffDict());
276 Cb2_.readIfPresent(this->coeffDict());
277 Cw1_ = Cb1_/
sqr(kappa_) + (1.0 + Cb2_)/sigmaNut_;
279 Cw3_.readIfPresent(this->coeffDict());
280 Cv1_.readIfPresent(this->coeffDict());
281 Cs_.readIfPresent(this->coeffDict());
292 template<
class BasicTurbulenceModel>
302 template<
class BasicTurbulenceModel>
312 this->runTime_.timeName(),
322 template<
class BasicTurbulenceModel>
326 <<
"Turbulence kinetic energy dissipation rate not defined for " 327 <<
"Spalart-Allmaras model. Returning zero field" 337 this->runTime_.timeName(),
347 template<
class BasicTurbulenceModel>
350 if (!this->turbulence_)
375 Cb1_*alpha*rho*Stilda*nuTilda_
376 -
fvm::Sp(Cw1_*alpha*rho*fw(Stilda)*nuTilda_/
sqr(y_), nuTilda_)
380 nuTildaEqn.
ref().relax();
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedTensor skew(const dimensionedTensor &dt)
tmp< fvMatrix< Type > > Sp(const DimensionedField< scalar, volMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
Apply correction to field.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< volScalarField > Stilda(const volScalarField &chi, const volScalarField &fv1) const
BasicTurbulenceModel::rhoField rhoField
dimensionedScalar sqrt(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual tmp< volScalarField > k() const
Return the turbulence kinetic energy.
bool readIfPresent(const dictionary &)
Update the value of dimensioned<Type> if found in the dictionary.
Generic dimensioned Type class.
Eddy viscosity turbulence model base class.
tmp< volScalarField > fv2(const volScalarField &chi, const volScalarField &fv1) const
BasicTurbulenceModel::transportModel transportModel
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
static const wallDist & New(const fvMesh &mesh)
Templated abstract base class for RAS turbulence models.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Dimension set for the base types.
bool read(const char *, int32_t &)
A class for handling words, derived from string.
SolverPerformance< Type > solve(fvMatrix< Type > &, const dictionary &)
Solve returning the solution statistics given convergence tolerance.
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
tmp< volScalarField > fv1(const volScalarField &chi) const
virtual bool read()
Read RASProperties dictionary.
const dimensionSet & dimensions() const
Return dimensions.
void constrain(fvMatrix< Type > &eqn)
Apply constraints to equation.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
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.
const dimensionedVector & g
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()
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
virtual void correctNut()
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar pow3(const dimensionedScalar &ds)
Spalart-Allmaras one-eqn mixing-length model for incompressible and compressible external flows...
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.
#define WarningInFunction
Report a warning using Foam::Warning.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
tmp< volScalarField > fw(const volScalarField &Stilda) const
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
tmp< volScalarField > DnuTildaEff() const
Return the effective diffusivity for nuTilda.
void correctBoundaryConditions()
Correct boundary field.
dimensionedScalar pow6(const dimensionedScalar &ds)
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate.
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...
BasicTurbulenceModel::alphaField alphaField
tmp< volScalarField > chi() const