NekMesh
is a utility bundled with Nektar++ which has two purposes:
allow foreign mesh file formats to be converted into Nektar++’s XML format;
aide in the generation of high-order meshes through a series of supplied processing modules.
NekMesh
replaces a previous utility called MeshConvert. This change is to reflect the
fact that the program no longer only converts and manipulates meshes but can now also
generate them from a CAD definition. This mesh generator is in an early stage of development
and as such is disabled by default. For the time being those not using the mesh generator can
use NekMesh
as they would have used MeshConvert, none of the functionality or methodology
has changed.There is also some limited support for other output formats. We begin by running through a
basic example to show how a mesh can be converted from the widely-used mesh-generator
Gmsh
to the XML file format.
.xml
files in a compressed form where
the VERTEX, EDGES, FACES, ELEMENTS and CURVED information is compressed into
binary format which is then converted into base64. This is identified for each section by the
attribute COMPRESSED="B64Z-LittleEndian”
. To output in ascii format add the module
option “:xml:uncompress” to the .xml
file, i.e. NekMesh
file.msh newfile.xml:xml:uncompress
Gmsh