I’m not an expert on mesh files so hopefully another member of the community can offer more assistance but I did note that from the output you’re seeing, it’s looking like NekMesh’s “InputGmsh” reader is not understanding the file format that’s being provided
as input because it doesn’t seem to actually be reading the mesh structure.
I wondered if this has something to do with the Gmsh file format you’re using. I tried some different Gmsh format versions and with ASCII V2, NekMesh does indeed seem to be able to read the mesh structure, however, it fails on writing the output, the same
as you have below. You may already be familiar with this but you can export to a different Gmsh version by selecting File -> Export in Gmsh and then when you select to save the .msh file, it will give you options for the file version and a couple of other
options (I have all unchecked in the version where NekMesh was able to read the mesh.
[InputGmsh] Finished reading mesh.
[InputGmsh] - Element dimension : 2
[InputGmsh] - Space dimension : 2
[InputGmsh] - No. of nodes : 3264
[InputGmsh] - No. of 2D elements : 3116
[InputGmsh] - No. of boundary elements : 305
[InputGmsh] - Elapsed time: 0.226916s.
[OutputNekpp] Writing Nektar++ file 'out.xml'
Fatal : Level 0 assertion violation
Unable to read composite index range:
terminate called after throwing an instance of 'Nektar::ErrorUtil::NekError'
what(): Level 0 assertion violation
Unable to read composite index range:
The number of elements in the above matches the mesh statistics shown in Gmsh but the number of nodes seems far too low. I also see a huge number of warnings:
[InputGmsh] -> Composite uses
[InputGmsh] -> Element uses Q
[InputGmsh] Have you specified physical volumes and surfaces?
[InputGmsh] WARNING: Different types of elements in same composite!
From this, I’m assuming that there’s an issue with the composites in the mesh, especially given that NekMesh reports “Unable to read composite index range” when it tries to write out the Nektar XML file.
As I say, I’m not an expert on this but I hope this additional information is useful and maybe someone else can offer further advice.
Best wishes,
Jeremy
This email from
rilteber@gmail.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,
I am trying to convert a simple mesh made in Gmsh (cyl.msh) to Nektar++ usable format (.xml). I can view the mesh in Gmsh. NekMesh gives the following error when I try to convert:
NekMesh -v cyl.msh out.xml
[InputGmsh] Reading Gmsh file: 'cyl.msh'
[InputGmsh] Finished reading mesh.
[InputGmsh] - Element dimension : 0
[InputGmsh] - Space dimension : 2
[InputGmsh] - No. of nodes : 0
[InputGmsh] - No. of 0D elements : 0
[InputGmsh] - No. of boundary elements : 0
[InputGmsh] - Elapsed time: 0.0542657s.
[OutputNekpp] Writing Nektar++ file 'out.xml'
Fatal : Level 0 assertion violation
Unable to read composite index range:
terminate called after throwing an instance of 'Nektar::ErrorUtil::NekError'
what(): Level 0 assertion violation
Unable to read composite index range:
Aborted
Can you help me with this problem?
With kind regards,
Ilteber
<cyl.msh>_______________________________________________
Nektar-users mailing list
Nektar-users@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/nektar-users