30#include "twoPhaseSystem.H"
34Foam::RASModels::phasePressureModel::phasePressureModel
36 const volScalarField&
alpha,
37 const volScalarField&
rho,
38 const volVectorField&
U,
39 const surfaceScalarField& alphaRhoPhi,
40 const surfaceScalarField&
phi,
41 const transportModel& phase,
42 const word& propertiesName,
48 RASModel<EddyDiffusivity<ThermalDiffusivity
50 PhaseCompressibleTurbulenceModel<phaseModel>
64 alphaMax_(coeffDict_.
get<scalar>(
"alphaMax")),
65 preAlphaExp_(coeffDict_.
get<scalar>(
"preAlphaExp")),
66 expMax_(coeffDict_.
get<scalar>(
"expMax")),
105Foam::tmp<Foam::volScalarField>
113Foam::tmp<Foam::volScalarField>
121Foam::tmp<Foam::volScalarField>
129Foam::tmp<Foam::volSymmTensorField>
137 dimensioned<symmTensor>(dimensionSet(0, 2, -2, 0, 0),
Zero)
142Foam::tmp<Foam::volScalarField>
145 tmp<volScalarField> tpPrime
150 exp(preAlphaExp_*(alpha_ - alphaMax_)),
156 tpPrime.ref().boundaryFieldRef();
160 if (!bpPrime[patchi].
coupled())
162 bpPrime[patchi] == 0;
170Foam::tmp<Foam::surfaceScalarField>
173 tmp<surfaceScalarField> tpPrime
184 tpPrime.ref().boundaryFieldRef();
188 if (!bpPrime[patchi].
coupled())
190 bpPrime[patchi] == 0;
198Foam::tmp<Foam::volSymmTensorField>
201 return devRhoReff(U_);
205Foam::tmp<Foam::volSymmTensorField>
217 rho_.dimensions()*dimensionSet(0, 2, -2, 0, 0)
222Foam::tmp<Foam::fvVectorMatrix>
231 rho_.dimensions()*dimensionSet(0, 4, -2, 0, 0)
EddyDiffusivity(const word &type, const alphaField &alpha, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
static tmp< GeometricField< symmTensor, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< symmTensor >::calculatedType())
GeometricBoundaryField< scalar, fvPatchField, volMesh > Boundary
@ NO_REGISTER
Do not request registration (bool: false).
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
PhaseCompressibleTurbulenceModel(const word &type, const alphaField &alpha, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
Construct.
RASModel(const RASModel &)=delete
virtual const dictionary & coeffDict() const
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate.
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 tmp< fvVectorMatrix > divDevRhoReff(volVectorField &U) const
Return the source term for the momentum equation.
virtual tmp< volScalarField > pPrime() const
Return the phase-pressure'.
virtual tmp< surfaceScalarField > pPrimef() const
Return the face-phase-pressure'.
virtual tmp< volScalarField > omega() const
Return the specific dissipation rate.
virtual tmp< volSymmTensorField > devRhoReff() const
Return the effective stress tensor.
virtual bool read()
Re-read model coefficients if they have changed.
ThermalDiffusivity(const word &type, const alphaField &alpha, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect,...
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)
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
RASModel< EddyDiffusivity< turbulenceModel > > RASModel
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.
const dimensionSet dimPressure
dimensionedScalar exp(const dimensionedScalar &ds)
GeometricField< vector, fvPatchField, volMesh > volVectorField
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
static constexpr const zero Zero
Global zero (0).
#define forAll(list, i)
Loop across all elements in list.