Number of finite elements

Hello,

I know I can see the mesh statistics in the Gmsh environment, but I was wondering how to check the number of finite elements within a Gmsh (or other) mesh from the python script through some FEniCS abstractions.

Regards,
Santiago

The dolfin.Mesh class has many functions for this, have a look at the exposed mesh functions.
Here you find functions such as num_cells, num_facets, num_edges etc.

1 Like