I am using dolfinx and working with Raviart–Thomas elements (lowest order / order 1) on quadrilaterals on a rectangular mesh. For a given cell I need to access the dofs, which works

dofs = V.dofmap.cell_dofs(cell_idx)

and then as a next step I need to get the coordinates of the four DoFs. I understand that the tabulate_dof_coordinates does not work but the four DoFs are four flux values over the four edges (see DefElement: Q H(div)). So what I am looking for is the coordinate of the center of the facet for each of the DoFs as a two-dimensional coordinate. Or alternatively, speaking how are the four DoFs located with respect to the center of the cell (which one is at the top, at the bottom, to the left, to the right). Is there a straightforward way of extracting this information?

DOFs on the RT element are no point evaluations, they represent integral moments. So there is no position on the facet at which they are located. If you take a look on the Basix definition you will find evaluation points which are used to calculated the DOF value. But these points are nothing else then the quadrature points, required to evaluate the integral moments on the facet.

thanks for the quick reply. Unfortunately, I am not sure what to make of this. I am probably not familiar enough with the basics of dolfinx to understand your reply. Which “Basisx definition” do you mean? Could you provide an URL please?

For every facet of my (quadrilateral) cell I have one DoF. So the information I am seeking is: what is the location of the facet (or its coordinates) corresponding to the DoF? Is there some (straightforward) way to retrieve this information?