Nektar++

Downloads

Compilation Instructions

Example Usage

Educational Material

Documentation

Team Members

Publications

License

Acknowledgments

Contact

Pre-processing


The current distribution of the code has a specific Nektar++ input format. It is formatted according to the XML standard, hence the .xml extension of the input files. The format is briefly explained in these lecture slides. Examples of input files can be found in the directories

It is possible to convert meshes generated by Gmsh to the Nektar++ input format. Therefore, we have provided a utility in the Nektar++/utilities/PreProcessing/MeshConvert directory called "MeshConvert". This routine when compiled take a .msh file (Gmsh format) as input and produces as .xml file (Nektar++ format) as output. If Nektar++ is properly compiled this can be done in the following way:

  1. Copy the mesh-file generated by Gmsh (call it mesh.msh) to the directory Nektar++/utilities/builds/PreProcessing/MeshConvert/
  2. At the terminal, go to the same directory Nektar++/utilities/builds/PreProcessing/MeshConvert/
  3. Convert the mesh using the MeshConvert utility by typing "./MeshConvert -g mesh.msh -o mesh.xml". This will create the file mesh.xml which can be read by Nektar++.
A number of example Gmsh files and their corresponding MSH files are provided in the Nektar++/utilities/PreProcessing/MeshConvert/Examples directory.