Educational Material
The intention of this page is to provide a starting point for those who want to get familiar with both the Nektar++ library and the spectral/hp element method. To complement the documentation available throughout this website, we here present a series of examples and exercises. In addition, you can also find a set of lecture slides covering the spectral/hp element method from a Nektar++ point of view.
- Lecture slides: "A hands-on approach to implementing and using spectral/hp elements."
- The files below implement the exercises listed at the end of chapter 2,3 and 4 of the book written by Karniadakis and Sherwin [1]. These examples provide a good overview of how the building blocks of the spectral/hp library can be implemented using either fundamental routines for polynomial manipulation or using the Nektar++ library.
      Chapter 2       Chapter 3       Chapter 4 - Exercise 4  (Input Files)
- A more concise selection of exercises can be found in the tutorial below:
      Tutorial 1       Tutorial 2       Tutorial 3 - Exercise 1  (QuadMesh.xml)
- How to compile the exercises in Nektar++:
- Compile Nektar++ as described in the Compilation Instructions
- In Nektar++/exercises/ create the directory builds
- In Nektar++/exercises/builds/ compile the exercises with the same procedure used for the utilities in the Compilation Instructions