38 const scalar vDotResidualAlpha
59 Su += alpha2ByRho1*alphaRho1Sup.
Su();
60 Sp += alpha2ByRho1*alphaRho1Sup.
Sp();
71 Su -= alpha1ByRho2*(alphaRho2Sup.
Su() + alphaRho2Sup.
Sp());
72 Sp += alpha1ByRho2*alphaRho2Sup.
Sp();
77 if (
vDot[celli] > 0.0)
84 else if (
vDot[celli] < 0.0)
#define forAll(list, i)
Loop across all elements in list.
const dictionary & alphaControls
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
static tmp< DimensionedField< Type, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &, const Field< Type > &)
Return a temporary field constructed from name, mesh,.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A special matrix type and solver, designed for finite volume solutions of scalar equations....
tmp< volScalarField::Internal > Sp() const
Return the implicit source.
tmp< VolInternalField< Type > > Su() const
Return the explicit source.
const word & name() const
Foam::fvModels & fvModels() const
Return the fvModels that are created on demand.
const fvMesh & mesh
Region mesh.
volScalarField::Internal vDot
Compressibility source.
virtual void alphaSuSp(tmp< volScalarField::Internal > &Su, tmp< volScalarField::Internal > &Sp, const dictionary &alphaControls)
Calculate the alpha equation sources.
volScalarField & alpha1
Reference to the phase1-fraction.
volScalarField & alpha2
Reference to the phase2-fraction.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
Calculate the divergence of the given field.
tmp< VolField< Type > > Su(const VolField< Type > &su, const VolField< Type > &vf)
tmp< VolField< Type > > Sp(const volScalarField &sp, const VolField< Type > &vf)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)