Replies: 2 comments 3 replies
-
I think what you are proposing is only valid for Lagrangian type of interpolations where the order of the geometric interpolation matches the one of the finite element field (which is not necessarily the case). There are other elements, where the dofs are associated to edges even though there is no node in the middle of the edge see e.g. https://defelement.com/elements/raviart-thomas.html |
Beta Was this translation helpful? Give feedback.
-
Thanks your comment @koehlerson. Is it possible to create a separate function for distributing dofs for Lagrange interpolation. Its can improve performance, after all Lagrange interpolation is the most commonly used. |
Beta Was this translation helpful? Give feedback.
-
There is such a complicated procedure used in the dofs generation in
DofHandler
. Its idea is to loop through the cell list and push new dofs, and keep track of visited vertices, edges, and faces to make sure there are no duplicates.However, it is simpler to create dofs based on the node list and then assign dofs to cells according to their node information. A simple example is shown below.
In addition, the nodes in a cell is by default arranged in the order of vertices, edges, and surfaces by default. Moreover, the above code may only work for the default interpolation. So there exists another question, is it necessary to use an interpolation higher or lower than the order of the cell.
There must be some other consideration in
DofHandler
, but I don't really understand it, so I'm hoping someone will clear it up.Beta Was this translation helpful? Give feedback.
All reactions