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();
46 eqn.source()[
c] -= V[
c]*alphaRho[
c]*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.
const fvMesh & mesh_
Reference to the mesh database.
Vector< scalar > vector
A scalar version of the templated Vector.
const Time & time() const
Return the top-level database.
const dimensionedScalar & c
Speed of light in a vacuum.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
virtual Type value(const scalar x) const =0
Return value as a function of (scalar) independent variable.
scalar deltaTValue() const
Return time step value.
const Type & value() const
Return const reference to value.
labelList cells_
Set of cells to apply source to.