32 template<
class BasicMomentumTransportModel>
59 IOobject::groupName(
"nut", alphaRhoPhi.group()),
60 this->runTime_.timeName(),
72 template<
class BasicMomentumTransportModel>
79 template<
class BasicMomentumTransportModel>
86 wordList patchFieldTypes(tk().boundaryField().types());
95 ->
found(patchFieldTypes[i])
104 IOobject::groupName(
"R", this->alphaRhoPhi_.group()),
111 template<
class BasicMomentumTransportModel>
118 template<
class BasicMomentumTransportModel>
virtual tmp< volSymmTensorField > sigma() const
Return the Reynolds stress tensor [m^2/s^2].
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
#define forAll(list, i)
Loop across all elements in list.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Linear viscous stress turbulence model base class.
label k
Boltzmann constant.
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
virtual bool read()=0
Re-read model coefficients if they have changed.
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
static const Identity< scalar > I
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
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()
This boundary condition is not designed to be evaluated; it is assumed that the value is assigned via...
BasicMomentumTransportModel::rhoField rhoField
BasicMomentumTransportModel::transportModel transportModel
virtual void validate()
Validate the turbulence fields after construction.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
eddyViscosity(const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
Construct from components.
BasicMomentumTransportModel::alphaField alphaField
A class for managing temporary objects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...