37 const viscosity& viscosity,
52 phase_(
refCast<const phaseModel>(viscosity)),
54 preAlphaExp_(coeffDict_.
lookup<scalar>(
"preAlphaExp")),
55 expMax_(coeffDict_.
lookup<scalar>(
"expMax")),
59 dimensionSet(1, -1, -2, 0, 0),
84 eddyViscosity<RASModel<phaseCompressible::momentumTransportModel>>::
88 coeffDict().lookup(
"preAlphaExp") >> preAlphaExp_;
89 coeffDict().lookup(
"expMax") >> expMax_;
90 g0_.readIfPresent(coeffDict());
128 return tmp<volSymmTensorField>
134 dimensioned<symmTensor>
137 dimensionSet(0, 2, -2, 0, 0),
148 tmp<volScalarField> tpPrime
156 exp(preAlphaExp_*(alpha_ - phase_.alphaMax())),
163 tpPrime.ref().boundaryFieldRef();
167 if (!bpPrime[
patchi].coupled())
180 tmp<surfaceScalarField> tpPrime
196 tpPrime.ref().boundaryFieldRef();
200 if (!bpPrime[
patchi].coupled())
213 return tmp<volSymmTensorField>
219 dimensioned<symmTensor>
222 rho_.dimensions()*dimensionSet(0, 2, -2, 0, 0),
236 return tmp<fvVectorMatrix>
241 rho_.dimensions()*dimensionSet(0, 4, -2, 0, 0)
#define forAll(list, i)
Loop across all elements in list.
virtual tmp< volSymmTensorField > devTau() const
Return the effective stress tensor.
virtual tmp< volSymmTensorField > sigma() const
Return the stress tensor [m^2/s^2].
To & refCast(From &r)
Reference type cast template function.
virtual tmp< fvVectorMatrix > divDevTau(volVectorField &U) const
Return the source term for the momentum equation.
static tmp< GeometricField< symmTensor, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< symmTensor >> &)
Return a temporary field constructed from name,.
GeometricBoundaryField< scalar, fvPatchField, volMesh > Boundary
Type of the boundary field.
GeometricField< vector, fvPatchField, volMesh > volVectorField
virtual tmp< volScalarField > pPrime() const
Return the phase-pressure'.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
compressibleMomentumTransportModel momentumTransportModel
stressControl lookup("compactNormalStress") >> compactNormalStress
dimensionedScalar exp(const dimensionedScalar &ds)
static word groupName(Name name, const word &group)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
virtual void correct()
Solve the kinetic theory equations and correct the viscosity.
virtual tmp< volScalarField > k() const
Return the turbulence kinetic energy.
virtual bool read()
Re-read model coefficients if they have changed.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
virtual ~phasePressureModel()
Destructor.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fvMatrix< vector > fvVectorMatrix
phasePressureModel(const volScalarField &alpha, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity, const word &type=typeName)
Construct from components.
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual tmp< volScalarField > omega() const
Return the turbulence specific dissipation rate.
RASModel< momentumTransportModel > RASModel
Typedefs for turbulence, RAS and LES models for compressible flow based on the standard laminar trans...
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate.
virtual tmp< surfaceScalarField > pPrimef() const
Return the face-phase-pressure'.