This email from alexander.schukmann@protonmail.com originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list to disable email stamping for this address.

 

Hi all,

when converting the attached 2D Gmsh mesh from msh to xml using NekMesh, I receive the following error:

[InputGmsh]   Reading Gmsh file: 'mesh.msh'
[InputGmsh]   Finished reading mesh.
[InputGmsh]    - Element dimension        : 2
[InputGmsh]    - Space dimension          : 1
[InputGmsh]    - No. of nodes             : 2211
[InputGmsh]    - No. of 2D elements       : 2000
[InputGmsh]    - No. of boundary elements : 420
[InputGmsh]     - Elapsed time: 0.00769036s.
[OutputNekpp] Writing Nektar++ file 'mesh.xml'
Fatal   : Level 0 assertion violation
Coordinate dimension should be at least 2 for a 2D geometry
terminate called after throwing an instance of 'Nektar::ErrorUtil::NekError'
  what():  Level 0 assertion violation
Coordinate dimension should be at least 2 for a 2D geometry
Aborted (core dumped)

NekMesh does not read the correct space dimension for some reason. The mesh was created with ICEM, exported as cgns and converted to msh format with Gmsh version 4.5.2. I use this approach regularly and this is the first time this issue showed up.
Any help will be very much appreciated!

All the best
Alex


Sicher versendet mit Proton Mail.