I am used to Dolfin, where there exist objects like Cell(mesh, cell), Face(mesh, face), or Edge(mesh, edge), and you can call their volume/area/length with Cell(mesh, cell).volume() for example.
Is there something similar in Dolfinx? How can one compute these quantities? the function dolfinx.cpp.mesh.volume_entities() is not in Dolfinx 0.7.0 anymore
However, going forward, DOLFINx supports arbitrary order cells with arbitrary mappings from a reference cell. This makes a catch all volume computation difficult to write in the C++ layer without defining an FE formulation. In a problem’s script, however, this can be achieved by assembling the vector, e.g.,
V = dolfinx.fem.FunctionSpace(mesh, ("DG", 0))
h = dolfinx.fem.assemble(dolfinx.fem.form(dolfinx.fem.Constant(mesh, 1.0) * ufl.dx))