34 template<
class RhoType,
class RAUType,
class MRFType>
41 const RAUType& rhorAU,
50 const surfaceScalarField::Boundary& phiHbyABf =
52 const typename RAUType::Boundary& rhorAUBf =
53 rhorAU.boundaryField();
54 const surfaceVectorField::Boundary& SfBf =
56 const surfaceScalarField::Boundary& magSfBf =
61 if (isA<fixedFluxPressureFvPatchScalarField>(pBf[
patchi]))
63 refCast<fixedFluxPressureFvPatchScalarField>
70 - rho.boundaryField()[
patchi]
71 *MRF.relative(SfBf[patchi] & UBf[patchi], patchi)
73 /(magSfBf[patchi]*rhorAUBf[patchi])
80 template<
class RAUType>
94 template<
class RAUType,
class MRFType>
108 template<
class RAUType>
#define forAll(list, i)
Loop across all elements in list.
const surfaceVectorField & Sf() const
Return cell face area vectors.
void constrainPressure(volScalarField &p, const RhoType &rho, const volVectorField &U, const surfaceScalarField &phiHbyA, const RAUType &rhorAU, const MRFType &MRF)
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const surfaceScalarField & magSf() const
Return cell face area magnitudes.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
const Mesh & mesh() const
Return mesh.
Mesh data needed to do the Finite Volume discretisation.