Open jacobsorme opened 1 year ago
Documenting .nmsh is definitely something that we must do. Same for expanding the examples Readme, perhaps including an image with expected output. I think it is hard for us to promise when it will be done due to manpower limits. But your input is nevertheless very much appreciated since it helps us set priorities in our efforts.
I understand. Let me know if you need any help in that.
Any help is of course more than welcome!
Regarding the .nmsh
file, this is Neko's binary mesh file; it does not contain any solutions or such (for this, we use Nek5000's field format), only a collection of elements and zones (for marking boundary conditions and such). The format itself is relatively simple, starting with a small header of two integers, the numbers of elements nelv
and the geometrical dimension gdim
. Then follows a list of nelv
elements, quads in 2d and hexes in 3d, the format for those are descrined here: https://github.com/ExtremeFLOW/neko/blob/develop/src/io/format/nmsh.f90. Following the elements comes the zones and finally deformation information, the entire reader can be found here: https://github.com/ExtremeFLOW/neko/blob/develop/src/io/nmsh_file.f90 (Indeed a description like this should for sure be in the documentation's appendix)
The current meshing workflow is to generate a mesh in gmsh, convert it into Nek5000's rea/re2, and finally run the rea2nbin
tool to generate the final .nmsh
file. There's no plugin for VisIT/Paraview or such to load .nmsh
files, so the only way to "debug" a mesh is to write out a field file from the solver.
I guess this is as good as any place to get this clarified, if not let me know and ill make a separate issue.
I have attempted to follow the recommended workflow here, however, I am not that used to setting up these types of models so I might have missed something.
Additionally I am not certain what is meant with the warning "No NEKTON map found".
I had similar issues with the gmsh2nek -> rea2nbin. The issue in the end was with gmsh2nek, and using a tweaked version of that sovled the issue. My impression is that the *2nek tools are not very reliable.
I think i have resolved the Issue i faced. Nek5000 have in april 2023 introduced a V004 of their re2 files. This mean the header have changed and the current specification in re2_file, line 99 is outdated. They have added an additional integer variable stored in the header which they call nBCre2 and updated the length of the integers.
Old format: '(a5,i9,i3,i9,a54)'
New Format: '(a5,i16,i3,i16,i4,a36)'
Question is whether they also changed the general packing algorithm..
Edit: They did not. Side note: the new Nek5000 ".re2" Version 004 is now supported as of #1015
Hi,
Would it be possible to add some output images to the README of examples, or to the general README? Also, could some instructions on how to open and use
.nmsh
files be added?Kind regards