42 template<
class BasicTurbulenceModel>
45 this->nut_ = Cmu_*
sqr(k_)/epsilon_;
46 this->nut_.correctBoundaryConditions();
49 BasicTurbulenceModel::correctNut();
53 template<
class BasicTurbulenceModel>
64 template<
class BasicTurbulenceModel>
77 template<
class BasicTurbulenceModel>
80 const alphaField&
alpha,
86 const word& propertiesName,
182 bound(k_, this->kMin_);
183 bound(epsilon_, this->epsilonMin_);
185 if (
type == typeName)
187 this->printCoeffs(
type);
194 template<
class BasicTurbulenceModel>
199 Cmu_.readIfPresent(this->coeffDict());
200 C1_.readIfPresent(this->coeffDict());
201 C2_.readIfPresent(this->coeffDict());
202 C3_.readIfPresent(this->coeffDict());
203 sigmak_.readIfPresent(this->coeffDict());
204 sigmaEps_.readIfPresent(this->coeffDict());
213 template<
class BasicTurbulenceModel>
216 if (!this->turbulence_)
222 const alphaField&
alpha = this->alpha_;
223 const rhoField&
rho = this->rho_;
230 eddyViscosity<RASModel<BasicTurbulenceModel>>
::correct();
232 const volScalarField::Internal
divU 238 const volScalarField::Internal GbyNu
240 IOobject::scopedName(this->
type(),
"GbyNu"),
243 const volScalarField::Internal
G(this->GName(),
nut()*GbyNu);
247 epsilon_.boundaryFieldRef().updateCoeffs();
249 epsilon_.boundaryFieldRef().template evaluateCoupled<coupledFvPatch>();
252 tmp<fvScalarMatrix> epsEqn
265 epsEqn.ref().relax();
267 epsEqn.ref().boundaryManipulate(epsilon_.boundaryFieldRef());
270 bound(epsilon_, this->epsilonMin_);
273 tmp<fvScalarMatrix> kEqn
290 bound(k_, this->kMin_);
virtual tmp< fvScalarMatrix > epsilonSource() const
void correct(GeometricField< Type, PatchField, GeoMesh > &field)
Apply correction to field.
const dimensionedScalar G
Newtonian constant of gravitation.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
virtual tmp< fvScalarMatrix > kSource() const
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Generic dimensioned Type class.
tmp< GeometricField< Type, faPatchField, areaMesh > > ddt(const dimensioned< Type > dt, const faMesh &mesh)
zeroField SuSp(const Foam::zero, const GeometricField< Type, faPatchField, areaMesh > &)
A no-op source.
Eddy viscosity turbulence model base class.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Templated abstract base class for RAS turbulence models.
constexpr const char *const group
Group name for atomic constants.
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))
Standard k-epsilon turbulence model for incompressible and compressible flows including rapid distort...
A class for handling words, derived from Foam::string.
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
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.
Base-class for all transport models used by the incompressible turbulence models. ...
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
virtual void correctNut()
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...
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
SymmTensor< Cmpt > devTwoSymm(const SymmTensor< Cmpt > &st)
Return the deviatoric part of twice the symmetric part of a SymmTensor.