Cell-wise volume integration

Hi @ROC_Para,

Welcome to the ParaView discourse! Thanks for posting your problem.

Indeed, I couldn’t find one single filter that integrates the scalar field cell by cell and retains it as a cell field. However, if your field uses linear basis functions and your mesh is comprised of tetrahedra, then I believe that the integral per cell should be the average value of the nodes comprising the cell multiplied by the volume of the cell.

Using that formula, you can use the following workflow:

  • Use the “Point To Cell Data” filter to perform an average of your values cell-wise
  • Use the “Cell Size” filter to compute your cell volumes
  • Use a “Calculator” filter to multiply your averaged value cell field with your volume field

The resulting cell field should have the value of your scalar integrated in each cell provided my initial hypotheses were correct.

Hope that helps!

Regards,

Julien

1 Like