This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Nedelec elements

0 votes

I am trying to create the following matrix
$$ C_{i,j} = \begin{cases}
\pm 1 & \quad \text{if node $j$ is the head/tail of edge $i$,}
\
\quad 0 & \quad \text{otherwise}
\end{cases}
$$

This matrix depends on the global orientation of the Nedelec elements but I don't know how to extract these from the function space. Is this easily done?

Sorry about the poor LaTeXing but I can't seem to make it to have cases. Tried a bunch of ways and none of them work....

asked Mar 20, 2014 by mwathen FEniCS Novice (710 points)
edited Mar 20, 2014 by mwathen

1 Answer

0 votes

What do you mean by head and tail?

answered Mar 20, 2014 by Kent-Andre Mardal FEniCS Expert (14,380 points)

So I need the global tangential vector on each edge (this should come from the Nedelec space) then the head node would be the node at which the tangential vector is pointing to and the tail would be the other node.

...