How to calculate volumetric energy density