56 if (!divergent())
return;
66 if (
fvModels().addsSupToField(alpha1.name()))
70 Su += alpha2()*alpha1Sup.
Su();
71 Sp += alpha2()*alpha1Sup.
Sp();
74 if (
fvModels().addsSupToField(alpha2.name()))
78 Su -= alpha1()*(alpha2Sup.
Su() + alpha2Sup.
Sp());
79 Sp += alpha1()*alpha2Sup.
Sp();
const dictionary & alphaControls
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
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,.
Generic GeometricField class.
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 divAlphaName
Name of the alpha convection scheme.
const surfaceScalarField & phi
Reference to the mass-flux field.
autoPtr< relativeVelocityModel > relativeVelocity
Pointer to the dispersed phase relative velocity model.
virtual void alphaSuSp(tmp< volScalarField::Internal > &Su, tmp< volScalarField::Internal > &Sp, const dictionary &alphaControls)
Calculate the alpha equation sources.
virtual tmp< surfaceScalarField > alphaPhi(const surfaceScalarField &phi, const volScalarField &alpha, const dictionary &alphaControls)
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
Foam::fvModels & fvModels(Foam::fvModels::New(mesh))
Calculate the divergence of the given field.
Calculate the face-flux of the given field.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
tmp< SurfaceField< typename innerProduct< vector, Type >::type > > flux(const VolField< Type > &vf)
Return the face-flux field obtained from the given volVectorField.
tmp< VolField< Type > > Su(const VolField< Type > &su, const VolField< Type > &vf)
tmp< VolField< Type > > Sp(const volScalarField &sp, const VolField< Type > &vf)
const dimensionSet dimless
const dimensionSet dimTime