42 template<
class BasicTurbulenceModel>
45 return exp(-3.4/
sqr(scalar(1) +
sqr(k_)/(this->
nu()*epsilon_)/50.0));
49 template<
class BasicTurbulenceModel>
58 template<
class BasicTurbulenceModel>
61 this->nut_ = Cmu_*fMu()*
sqr(k_)/epsilon_;
62 this->nut_.correctBoundaryConditions();
65 BasicTurbulenceModel::correctNut();
69 template<
class BasicTurbulenceModel>
80 template<
class BasicTurbulenceModel>
93 template<
class BasicTurbulenceModel>
96 const alphaField&
alpha,
102 const word& propertiesName,
202 if (type == typeName)
211 template<
class BasicTurbulenceModel>
216 Cmu_.readIfPresent(this->coeffDict());
217 C1_.readIfPresent(this->coeffDict());
218 C2_.readIfPresent(this->coeffDict());
219 C3_.readIfPresent(this->coeffDict());
220 sigmak_.readIfPresent(this->coeffDict());
221 sigmaEps_.readIfPresent(this->coeffDict());
230 template<
class BasicTurbulenceModel>
233 if (!this->turbulence_)
239 const alphaField&
alpha = this->alpha_;
240 const rhoField&
rho = this->rho_;
246 eddyViscosity<RASModel<BasicTurbulenceModel>>
::correct();
262 tmp<fvScalarMatrix> epsEqn
276 epsEqn.ref().relax();
278 epsEqn.ref().boundaryManipulate(epsilon_.boundaryFieldRef());
281 bound(epsilon_, this->epsilonMin_);
285 tmp<fvScalarMatrix> kEqn
301 bound(k_, this->kMin_);
void correct(GeometricField< Type, PatchField, GeoMesh > &field)
Apply correction to field.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
dimensionedScalar kMin_
Lower limit of k.
virtual bool read()
Re-read model coefficients if they have changed.
const dimensionedScalar G
Newtonian constant of gravitation.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
dimensionedScalar sqrt(const dimensionedScalar &ds)
tmp< volScalarField > magSqrGradGrad(const GeometricField< Type, fvPatchField, volMesh > &vf)
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
Generic dimensioned Type class.
Eddy viscosity turbulence model base class.
GeometricField< vector, fvPatchField, volMesh > volVectorField
virtual tmp< fvScalarMatrix > kSource() const
bool read(const char *buf, int32_t &val)
Same as readInt32.
Templated abstract base class for RAS turbulence models.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const dimensionSet dimVolume(pow3(dimLength))
virtual tmp< fvScalarMatrix > epsilonSource() const
dimensionedScalar exp(const dimensionedScalar &ds)
A class for handling words, derived from Foam::string.
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
tmp< volScalarField > f2() const
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
zeroField SuSp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
virtual void printCoeffs(const word &type)
Print model coefficients.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
zeroField Sp(const Foam::zero, const GeometricField< Type, fvPatchField, volMesh > &)
A no-op source.
SolverPerformance< Type > solve(faMatrix< Type > &, const dictionary &solverControls)
Solve returning the solution statistics given convergence tolerance.
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/chef2/andy/OpenFOAM/release/v2406/OpenFOAM-v2406/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H" 1{ alphav=clamp((rho - rholSat)/(rhovSat - rholSat), zero_one{});alphal=1.0 - alphav;Info<< "max-min alphav: "<< max(alphav).value()<< " "<< min(alphav).value()<< endl;psiModel-> correct()
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)
Base-class for all transport models used by the incompressible turbulence models. ...
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
const dimensionedScalar & D
virtual void correctNut()
tmp< volScalarField > fMu() const
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
static options & New(const fvMesh &mesh)
Construct fvOptions and register to database if not present.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Defines the attributes of an object for which implicit objectRegistry management is supported...
Launder and Sharma low-Reynolds k-epsilon turbulence model for incompressible and compressible and co...
dimensionedScalar epsilonMin_
Lower limit of epsilon.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
SymmTensor< Cmpt > devTwoSymm(const SymmTensor< Cmpt > &st)
Return the deviatoric part of twice the symmetric part of a SymmTensor.