32 template<
class BasicMomentumTransportModel>
35 const word& modelName,
41 const viscosity& viscosity
44 BasicMomentumTransportModel
59 template<
class BasicMomentumTransportModel>
66 template<
class BasicMomentumTransportModel>
72 IOobject::groupName(
"devTau", this->alphaRhoPhi_.group()),
73 (-(this->alpha_*this->rho_*this->nuEff()))
79 template<
class BasicMomentumTransportModel>
94 template<
class BasicMomentumTransportModel>
110 template<
class BasicMomentumTransportModel>
virtual void correct()=0
Solve the turbulence equations and correct the turbulence viscosity.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-10/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()
linearViscousStress(const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
Construct from components.
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
A class for handling words, derived from string.
BasicMomentumTransportModel::rhoField rhoField
virtual bool read()=0
Re-read model coefficients if they have changed.
dimensionedSymmTensor dev2(const dimensionedSymmTensor &dt)
virtual tmp< volSymmTensorField > devTau() const
Return the effective stress tensor.
BasicMomentumTransportModel::alphaField alphaField
A class for managing temporary objects.
virtual tmp< fvVectorMatrix > divDevTau(volVectorField &U) const
Return the source term for the momentum equation.