40 template<
class BasicMomentumTransportModel>
53 (2*
sqrt(2.0))*((S&S)&&S)
69 return 1.0/(A0_ + As*Us*k_/epsilon_);
73 template<
class BasicMomentumTransportModel>
81 this->nut_ = rCmu(gradU, S2, magS)*
sqr(k_)/epsilon_;
82 this->nut_.correctBoundaryConditions();
87 template<
class BasicMomentumTransportModel>
94 correctNut(gradU, S2, magS);
98 template<
class BasicMomentumTransportModel>
106 dimVolume*this->rho_.dimensions()*k_.dimensions()
113 template<
class BasicMomentumTransportModel>
122 dimVolume*this->rho_.dimensions()*epsilon_.dimensions()
131 template<
class BasicMomentumTransportModel>
195 this->runTime_.timeName(),
207 this->runTime_.timeName(),
215 bound(k_, this->kMin_);
216 bound(epsilon_, this->epsilonMin_);
218 if (type == typeName)
220 this->printCoeffs(type);
227 template<
class BasicMomentumTransportModel>
232 A0_.readIfPresent(this->coeffDict());
233 C2_.readIfPresent(this->coeffDict());
234 sigmak_.readIfPresent(this->coeffDict());
235 sigmaEps_.readIfPresent(this->coeffDict());
246 template<
class BasicMomentumTransportModel>
249 if (!this->turbulence_)
280 modelName(
"eta"), magS()*k_()/epsilon_()
285 max(eta/(scalar(5) + eta), scalar(0.43))
295 epsilon_.boundaryFieldRef().updateCoeffs();
307 C2_*
alpha()*
rho()*epsilon_()/(k_() +
sqrt(this->nu()()*epsilon_())),
311 + fvModels.source(alpha, rho, epsilon_)
314 epsEqn.
ref().relax();
316 epsEqn.ref().boundaryManipulate(epsilon_.boundaryFieldRef());
319 bound(epsilon_, this->epsilonMin_);
334 + fvModels.source(alpha, rho, k_)
341 bound(k_, this->kMin_);
343 correctNut(gradU, S2, magS);
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
dimensionedScalar acos(const dimensionedScalar &ds)
fvMatrix< scalar > fvScalarMatrix
tmp< fvMatrix< Type > > SuSp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
void clear() const
If object pointer points to valid object:
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedTensor skew(const dimensionedTensor &dt)
T & ref() const
Return non-const reference or generate a fatal error.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
dimensionedScalar sqrt(const dimensionedScalar &ds)
realizableKE(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &type=typeName)
Construct from components.
Generic dimensioned Type class.
const dimensionedScalar G
Newtonian constant of gravitation.
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
Eddy viscosity turbulence model base class.
virtual tmp< fvScalarMatrix > kSource() const
BasicMomentumTransportModel::alphaField alphaField
virtual bool read()
Re-read model coefficients if they have changed.
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
Templated abstract base class for RAS turbulence models.
tmp< volScalarField > rCmu(const volTensorField &gradU, const volScalarField &S2, const volScalarField &magS)
const dimensionSet dimTime
Dimension set for the base types.
bool read(const char *, int32_t &)
const Internal & v() const
Return a const-reference to the dimensioned internal field.
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
dimensionedScalar cos(const dimensionedScalar &ds)
BasicMomentumTransportModel::transportModel transportModel
Foam::fvConstraints & fvConstraints
A class for handling words, derived from string.
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-9/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()
tmp< fvMatrix< Type > > S(const Pair< tmp< volScalarField::Internal >> &, const GeometricField< Type, fvPatchField, volMesh > &)
static word groupName(Name name, const word &group)
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
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.
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
tmp< volScalarField > divU
virtual tmp< fvScalarMatrix > epsilonSource() const
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
Foam::fvModels & fvModels
BasicMomentumTransportModel::rhoField rhoField
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.
Finite volume constraints.
dimensionedSymmTensor symm(const dimensionedSymmTensor &dt)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
virtual void correctNut()
const scalarList W(::W(thermo))
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet dimVolume
SolverPerformance< Type > solve(fvMatrix< Type > &, const word &)
Solve returning the solution statistics given convergence tolerance.
A class for managing temporary objects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...