How to apply cell volum

As stated by the error message, a hexahedron is not in general affine, and thus one cannot compute it just based on its vertices.

You could compute the volume through a projection or assembly of the rhs in a DG space, see Volume of an element - #4 by dokken

1 Like