mesh.Mesh.area#
- Mesh.area()#
Return the total area of a Mesh.
Returns#
- float
For a level 2 Mesh, the sum of all element
areas(); for a level 3 Mesh, the area of theborder_mesh(); 0.0 ifareas()returned None.
Examples#
>>> Mesh(eltype='quad4').subdivide(3,2).area() 1.0
For a level 3 Mesh, note the difference between these three: the area of the border, the area of all faces (includes non-border faces), the sum of all element face areas (includes faces multiple times).
>>> M = Mesh(eltype='hex8').subdivide(4,3,2) >>> M.area(), M.face_mesh().area(), M.areas().sum() (6.0..., 12.0..., 18.0...)