high order spaces

hello ngsolve!

Is there a way to use the high order spaces in ngsolve? For example, is it possible to use Legendre polynomials on quads and hexahedra? There seems to be a C++ implementation here but I am not sure how this can be extended to be used in python scripts.

https://ngsolve.org/docu/v6.2.1907/mylittlengs/1_Basic/2_myHOFEM/hofem.html?highlight=high%20order%20spaces#creating-the-element

Thank you!

Hi, high order spaces are the default in ngsolve. Just create them with the order flag:

fes = H1(mesh, order=5)

The tutorial you found is how you would implement your own finite element spaces.
Best is to walk threw the i-tutorial as a start and to get a good overview.

best
christopher