Direction of edges in Nedelec elements

How to get the direction of edges in the mesh, when we are using nedelec elements.

Consider having a look at: How to find direction / relative orientation / definiton of edge-related dofs in N1curl space - FEniCS Q&A

Hi @dokken,
Is there a way to do this in dolfinx as well?

I would suggest looking at

as things in DOLFINx are slightly more complex due to the fact the we no longer order the mesh.

Is there a specific use-case you are aiming for?

Thank you. I’m working on solving a z-invariant electromagnetic problem, which leads to a 2D TE-case. I want to assign a tangential current source at specific edges. I have found the corresponding dofs, but I’m unsure about their orientations.