28 template<
class AlphaRhoFieldType>
29 void Foam::fv::accelerationSource::add
31 const AlphaRhoFieldType& alphaRho,
32 fvMatrix<vector>& eqn,
36 const DimensionedField<scalar, volMesh>& V =
mesh().
V();
47 const label celli = cells[i];
48 eqn.source()[celli] -= V[celli]*alphaRho[celli]*a;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Vector< scalar > vector
A scalar version of the templated Vector.
const Time & time() const
Return the top-level database.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
const fvMesh & mesh() const
Return const access to the mesh database.
virtual Type value(const scalar x) const =0
Return value as a function of scalar x.
scalar deltaTValue() const
Return time step value.
const Type & value() const
Return const reference to value.
List< label > labelList
A List of labels.