CellDiameter missing in dolfinx

Hello,

Is there any way to obtain the cell diameter in dolfinx?

Thanks,
Ricardo

Have you tried ufl.CellDiameter(mesh) (for usage in a variational form).
If you just want to get the numbers as a numpy array you can use dolfinx.cpp.mesh.h as discussed in Error generating quadratic mesh - #4 by dokken

This is still problematic for non-affine isoparametric elements. I use a heuristic approach for computing penalty terms as here. But if you need something precise you should be more careful.

Thank you
I was looking for it in dolfin instead of ufl