39 template<
class BasicTurbulenceModel>
42 return nuTilda_/this->
nu();
46 template<
class BasicTurbulenceModel>
53 return chi3/(chi3 +
pow3(Cv1_));
57 template<
class BasicTurbulenceModel>
64 return 1.0 - chi/(1.0 + chi*fv1);
68 template<
class BasicTurbulenceModel>
82 + fv2(chi, fv1)*nuTilda_/
sqr(kappa_*y_),
89 template<
class BasicTurbulenceModel>
119 template<
class BasicTurbulenceModel>
125 this->nut_ = nuTilda_*fv1;
128 BasicTurbulenceModel::correctNut();
132 template<
class BasicTurbulenceModel>
135 correctNut(fv1(this->chi()));
141 template<
class BasicTurbulenceModel>
150 const word& propertiesName,
203 Cw1_(Cb1_/
sqr(kappa_) + (1.0 + Cb2_)/sigmaNut_),
246 this->runTime_.timeName(),
256 if (type == typeName)
259 this->printCoeffs(type);
266 template<
class BasicTurbulenceModel>
271 sigmaNut_.readIfPresent(this->coeffDict());
272 kappa_.readIfPresent(this->coeffDict());
274 Cb1_.readIfPresent(this->coeffDict());
275 Cb2_.readIfPresent(this->coeffDict());
276 Cw1_ = Cb1_/
sqr(kappa_) + (1.0 + Cb2_)/sigmaNut_;
278 Cw3_.readIfPresent(this->coeffDict());
279 Cv1_.readIfPresent(this->coeffDict());
280 Cs_.readIfPresent(this->coeffDict());
291 template<
class BasicTurbulenceModel>
301 template<
class BasicTurbulenceModel>
311 this->runTime_.timeName(),
321 template<
class BasicTurbulenceModel>
324 WarningIn(
"tmp<volScalarField> SpalartAllmaras::epsilon() const")
325 <<
"Turbulence kinetic energy dissipation rate not defined for " 326 <<
"Spalart-Allmaras model. Returning zero field" 336 this->runTime_.timeName(),
346 template<
class BasicTurbulenceModel>
349 if (!this->turbulence_)
373 Cb1_*alpha*rho*Stilda*nuTilda_
374 -
fvm::Sp(Cw1_*alpha*rho*fw(Stilda)*nuTilda_/
sqr(y_), nuTilda_)
377 nuTildaEqn().relax();
dimensionedScalar sqrt(const dimensionedScalar &ds)
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
dimensionedScalar pow3(const dimensionedScalar &ds)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
dimensionedTensor skew(const dimensionedTensor &dt)
dimensioned< scalar > mag(const dimensioned< Type > &)
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
Bound the given scalar field if it has gone unbounded.
dimensioned< scalar > magSqr(const dimensioned< Type > &)
static const wallDist & New(const fvMesh &mesh)
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/dm2/henry/OpenFOAM/OpenFOAM-3.0.x/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()
volScalarField & bound(volScalarField &, const dimensionedScalar &lowerBound)
Bound the given scalar field if it has gone unbounded.
A class for handling words, derived from string.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
tmp< volScalarField > DnuTildaEff() const
Return the effective diffusivity for nuTilda.
virtual tmp< volScalarField > k() const
Return the turbulence kinetic energy.
Templated abstract base class for RAS turbulence models.
tmp< volScalarField > chi() const
tmp< fvMatrix< Type > > Sp(const DimensionedField< scalar, volMesh > &, const GeometricField< Type, fvPatchField, volMesh > &)
dimensionedScalar pow6(const dimensionedScalar &ds)
tmp< volScalarField > Stilda(const volScalarField &chi, const volScalarField &fv1) const
Generic dimensioned Type class.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
#define WarningIn(functionName)
Report a warning using Foam::Warning.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Dimension set for the base types.
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
BasicTurbulenceModel::transportModel transportModel
bool readIfPresent(const dictionary &)
Update the value of dimensioned<Type> if found in the dictionary.
Eddy viscosity turbulence model base class.
const dimensionSet & dimensions() const
Return dimensions.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
tmp< volScalarField > fw(const volScalarField &Stilda) const
virtual bool read()
Read RASProperties dictionary.
solverPerformance solve(fvMatrix< Type > &, const dictionary &)
Solve returning the solution statistics given convergence tolerance.
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate.
const dimensionedVector & g
void correctBoundaryConditions()
Correct boundary field.
tmp< volScalarField > fv1(const volScalarField &chi) const
bool read(const char *, int32_t &)
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< volScalarField > fv2(const volScalarField &chi, const volScalarField &fv1) const
virtual void correctNut()
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
BasicTurbulenceModel::rhoField rhoField
Spalart-Allmaras one-eqn mixing-length model for incompressible and compressible external flows...
BasicTurbulenceModel::alphaField alphaField
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A class for managing temporary objects.