34 template<
class BasicTurbulenceModel>
44 const word& propertiesName
76 template<
class BasicTurbulenceModel>
83 template<
class BasicTurbulenceModel>
90 wordList patchFieldTypes(tk().boundaryField().types());
99 ->
found(patchFieldTypes[i])
106 return tmp<volSymmTensorField>
112 IOobject::groupName(
"R", this->alphaRhoPhi_.group()),
113 this->runTime_.timeName(),
126 template<
class BasicTurbulenceModel>
133 template<
class BasicTurbulenceModel>
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
BasicTurbulenceModel::rhoField rhoField
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.
virtual tmp< volSymmTensorField > R() const
Return the Reynolds stress tensor.
BasicTurbulenceModel::transportModel transportModel
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
#define forAll(list, i)
Loop across all elements in list.
constexpr const char *const group
Group name for atomic constants.
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
A class for handling words, derived from Foam::string.
This boundary condition is not designed to be evaluated; it is assmued that the value is assigned via...
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/v2212/OpenFOAM-v2212/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()
virtual void validate()
Validate the turbulence fields after construction.
A class for managing temporary objects.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Defines the attributes of an object for which implicit objectRegistry management is supported...
eddyViscosity(const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
Construct from components.
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
BasicTurbulenceModel::alphaField alphaField