37 Foam::solvers::multiphaseEuler::compressibilityEqns
39 const PtrList<volScalarField>& dmdts,
40 const PtrList<volScalarField>& d2mdtdps
43 PtrList<fvScalarMatrix> pEqnComps(
phases.size());
47 phaseModel& phase =
phases_[phasei];
55 if (!phase.isochoric() || !phase.pure())
71 if (!phase.incompressible())
92 pEqnComps[phasei].relax();
97 (
alpha*phase.fluidThermo().psi()/
rho)
109 if (dmdts.set(phasei))
111 pEqnComp -= dmdts[phasei]/
rho;
113 if (d2mdtdps.set(phasei))
#define forAll(list, i)
Loop across all elements in list.
static word groupName(Name name, const word &group)
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool transonic() const
Flag to indicate to solve using transonic algorithm.
const surfaceScalarField & phi() const
Return cell face motion fluxes.
tmp< fvMatrix< Type > > sourceProxy(const VolField< Type > &eqnField) const
Return source for an equation.
virtual bool addsSupToField(const word &fieldName) const
Return true if an fvModel adds a source term to the given.
bool moving() const
Is mesh moving.
Foam::fvModels & fvModels() const
Return the fvModels that are created on demand.
pimpleNoLoopControl pimple
PIMPLE inner-loop controls.
const fvMesh & mesh
Region mesh.
volScalarField & p_rgh
Reference to the buoyant pressure for buoyant cases.
phaseSystem::phaseModelList & phases_
const phaseSystem::phaseModelList & phases
Reference to the phases.
Calculate the first temporal derivative.
Calculate the divergence of the given field.
Calculate the field for explicit evaluation of implicit and explicit sources.
Calculate the matrix for the first temporal derivative.
Calculate the matrix for the divergence of the given field and flux.
Calculate the matrix for implicit and explicit sources.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< VolField< Type > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
tmp< VolField< Type > > Sp(const volScalarField &sp, const VolField< Type > &vf)
tmp< VolField< Type > > div(const SurfaceField< Type > &ssf)
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const VolField< Type > &vf, const word &name)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
tmp< fvMatrix< Type > > ddt(const VolField< Type > &vf)
fvMatrix< scalar > fvScalarMatrix
SurfaceField< scalar > surfaceScalarField
const dimensionSet dimTime
const dimensionSet dimVolume
VolField< scalar > volScalarField
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.