Go to the documentation of this file.
29 #include "phasePressureModel.H"
30 #include "twoPhaseSystem.H"
34 Foam::RASModels::phasePressureModel::phasePressureModel
41 const transportModel& phase,
42 const word& propertiesName,
48 RASModel<EddyDiffusivity<ThermalDiffusivity
50 PhaseCompressibleTurbulenceModel<phaseModel>
66 alphaMax_(coeffDict_.get<scalar>(
"alphaMax")),
67 preAlphaExp_(coeffDict_.get<scalar>(
"preAlphaExp")),
68 expMax_(coeffDict_.get<scalar>(
"expMax")),
88 RASModel<EddyDiffusivity<ThermalDiffusivity
90 PhaseCompressibleTurbulenceModel<phaseModel>
95 coeffDict().readEntry(
"alphaMax", alphaMax_);
96 coeffDict().readEntry(
"preAlphaExp", preAlphaExp_);
97 coeffDict().readEntry(
"expMax", expMax_);
98 g0_.readIfPresent(coeffDict());
145 dimensioned<symmTensor>(dimensionSet(0, 2, -2, 0, 0),
Zero)
153 tmp<volScalarField> tpPrime
158 exp(preAlphaExp_*(alpha_ - alphaMax_)),
163 volScalarField::Boundary& bpPrime =
164 tpPrime.ref().boundaryFieldRef();
168 if (!bpPrime[patchi].coupled())
170 bpPrime[patchi] == 0;
181 tmp<surfaceScalarField> tpPrime
191 surfaceScalarField::Boundary& bpPrime =
192 tpPrime.ref().boundaryFieldRef();
196 if (!bpPrime[patchi].coupled())
198 bpPrime[patchi] == 0;
220 dimensioned<symmTensor>
222 rho_.dimensions()*dimensionSet(0, 2, -2, 0, 0),
Zero
234 return tmp<fvVectorMatrix>
239 rho_.dimensions()*dimensionSet(0, 4, -2, 0, 0)
const dimensionSet dimPressure
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
bool read(const char *buf, int32_t &val)
Same as readInt32.
virtual bool read()
Re-read model coefficients if they have changed.
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate.
dimensionedScalar exp(const dimensionedScalar &ds)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
#define forAll(list, i)
Loop across all elements in list.
virtual tmp< surfaceScalarField > pPrimef() const
Return the face-phase-pressure'.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
fvMatrix< vector > fvVectorMatrix
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual tmp< volScalarField > pPrime() const
Return the phase-pressure'.
virtual tmp< fvVectorMatrix > divDevRhoReff(volVectorField &U) const
Return the source term for the momentum equation.
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.
GeometricField< vector, fvPatchField, volMesh > volVectorField
RASModel< EddyDiffusivity< turbulenceModel > > RASModel
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
virtual tmp< volSymmTensorField > R() const
Return the Reynolds stress tensor.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static tmp< T > New(Args &&... args)
Construct tmp of T with forwarding arguments.
virtual void printCoeffs(const word &type)
Print model coefficients.
virtual void correct()
Solve the kinetic theory equations and correct the viscosity.
virtual tmp< volSymmTensorField > devRhoReff() const
Return the effective stress tensor.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
virtual tmp< volScalarField > k() const
Return the turbulence kinetic energy.
virtual tmp< volScalarField > omega() const
Return the specific dissipation rate.