26 #include "phasePressureModel.H" 27 #include "twoPhaseSystem.H" 31 Foam::RASModels::phasePressureModel::phasePressureModel
38 const transportModel& phase,
39 const word& propertiesName,
45 RASModel<EddyDiffusivity<ThermalDiffusivity
47 PhaseCompressibleTurbulenceModel<phaseModel>
69 dimensionSet(1, -1, -2, 0, 0),
96 RASModel<EddyDiffusivity<ThermalDiffusivity
98 PhaseCompressibleTurbulenceModel<phaseModel>
103 coeffDict().lookup(
"alphaMax") >> alphaMax_;
104 coeffDict().lookup(
"preAlphaExp") >> preAlphaExp_;
105 coeffDict().lookup(
"expMax") >> expMax_;
106 g0_.readIfPresent(coeffDict());
136 return tmp<volSymmTensorField>
149 dimensioned<symmTensor>
152 dimensionSet(0, 2, -2, 0, 0),
163 tmp<volScalarField> tpPrime
168 exp(preAlphaExp_*(alpha_ - alphaMax_)),
173 volScalarField::Boundary& bpPrime =
174 tpPrime.ref().boundaryFieldRef();
178 if (!bpPrime[
patchi].coupled())
191 tmp<surfaceScalarField> tpPrime
201 surfaceScalarField::Boundary& bpPrime =
202 tpPrime.ref().boundaryFieldRef();
206 if (!bpPrime[
patchi].coupled())
219 return tmp<volSymmTensorField>
232 dimensioned<symmTensor>
235 rho_.dimensions()*dimensionSet(0, 2, -2, 0, 0),
249 return tmp<fvVectorMatrix>
254 rho_.dimensions()*dimensionSet(0, 4, -2, 0, 0)
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
#define forAll(list, i)
Loop across all elements in list.
GeometricField< vector, fvPatchField, volMesh > volVectorField
virtual tmp< volScalarField > pPrime() const
Return the phase-pressure'.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
stressControl lookup("compactNormalStress") >> compactNormalStress
dimensionedScalar exp(const dimensionedScalar &ds)
static word groupName(Name name, const word &group)
virtual tmp< volSymmTensorField > R() const
Return the Reynolds stress tensor.
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.
RASModel< EddyDiffusivity< turbulenceModel > > RASModel
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
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 tmp< fvVectorMatrix > divDevRhoReff(volVectorField &U) const
Return the source term for the momentum equation.
virtual ~phasePressureModel()
Destructor.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fvMatrix< vector > fvVectorMatrix
A class for managing temporary objects.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
virtual tmp< volSymmTensorField > devRhoReff() const
Return the effective stress tensor.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate.
virtual tmp< surfaceScalarField > pPrimef() const
Return the face-phase-pressure'.