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();
41 velocity_->value(
mesh().time().timeToUserTime(t))
42 - velocity_->value(
mesh().time().timeToUserTime(t - dt));
49 const label celli = cells[i];
50 eqn.source()[celli] -= V[celli]*alphaRho[celli]*a;
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > 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.
scalar deltaTValue() const
Return time step value.
const Type & value() const
Return const reference to value.
List< label > labelList
A List of labels.