Volume of deformed mesh

Hi, I would like to calculate the volume of the geometry / mesh, but with deformation taken into account (stored in grid function gfu).

Following the example from a previous topic, I have tried (it’s a 2D geometry, so this is actually a surface, not a volume)

 Integrate(CF((1, 1)) + gfu, mesh)

but the results are not correct.

No that integrates 1+ deformation over the mesh.
What you can do:

mesh.SetDeformation(gfu)
Integrate(1, mesh)
mesh.UnsetDeformation()

Best
Christopher

1 Like