Skip to content
Snippets Groups Projects
Commit 326dd9f0 authored by Andrew Heather's avatar Andrew Heather
Browse files

added cellMass() function

parent f2c061d4
No related branches found
No related tags found
No related merge requests found
......@@ -341,6 +341,9 @@ public:
// routine
inline label faceInterpolation() const;
//- Cell owner mass
inline scalar massCell(const label cellI) const;
//- Particle mass
inline scalar mass() const;
......
......@@ -290,6 +290,16 @@ inline Foam::label Foam::KinematicParcel<ParcelType>::faceInterpolation() const
}
template <class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::massCell
(
const label cellI
) const
{
return rhoc_*this->cloud().pMesh().cellVolumes()[cellI];
}
template <class ParcelType>
inline Foam::scalar Foam::KinematicParcel<ParcelType>::mass() const
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment