I read the documentation for Basix and it seems that Lagrangian elements using Hierarchical shape functions are not included among the pre-provided element types. So I decided to try creating a custom element.
But it seems there is no way to attach multiple DOFs to one node. Take the triangular element based on Hierarchical shape functions as an example:
As shown in the figure, using Hierarchical shape functions can increase the element order without changing the original shape functions.
But I refer to the example in Creating a custom element — Basix 0.9.0.0 documentation which seems unable to create such the element. I’ve tried many combinations, adding elements of wcoeff and x, changing the size of M, and all produce dimension errors, or NaN output. If I’m missing something please let me know, I’d be very grateful.