How to check mesh quality in dolfinx

Hello everyone,
How can I check the mesh quality in dolfinx?

You could use pyvista, e.g. here.

You can also collect this information for histograms

1 Like

Thank you,
Does dolfinx care about mesh quality and is there any standard lower limit for mesh quality?

dolfinx doesn’t care, it will assemble a finite element system with whatever data it’s given, whether that data is considered “good” or “bad”. The numerical discretisation scheme and/or solution methods that you employ may or may not be sensitive to mesh quality. For example, iterative linear system solvers are notorious for poor performance with complicated and low quality meshes.