Direction of RWG basis function in bempp

Hi all,

To correlate RWG elements in bempp and in my own code, I’m interested in the order and direction of RWG basis function in bempp. As I can see, order of RWG elements is similar to the order of edges in grid.edges array, skipping grid.edge_on_boundary. But what is direction? By direction I mean the knowledge about positive and negative grid elements for each RWG basis function.

Could you pleas clarify this question?

Hi, this is difficult. It is very much an implementational detail depending on the chosen numbering of nodes and how edges are iterated through. To see how this is done I would suggest you have a look in the corresponding maxwell implementation within the files in the space module. It is not too long and should be relatively straight forward to understand.

1 Like