Mass inside actor

Hi, I’m currently doing a simple physics-based game in UE4 and NvFlex.
I need to calculate a mass of fluid inside a container (static mesh component). And I can’t find anything that will help me do it.
Every particle has its own mass and is filling containers, but a mass of a container does not change. Will you help me solve this problem?