Processing gmsh file with multiple element types
******************* This email 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 https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address. ******************* Hi all, I am trying to use NekMesh to convert a 2D mesh made using gmsh to XML. I am successful in converting a msh file which has only 1 type of element (only quad or tri). However, when I try to convert a mesh that has quads and triangles together, it gives me the following error: Fatal : Level 0 assertion violation Where : nektar++/library/SpatialDomains/MeshGraph.cpp[610] Message : Unable to read composite index range: terminate called after throwing an instance of 'Nektar::ErrorUtil::NekError' what(): Level 0 assertion violation Where : nektar++/library/SpatialDomains/MeshGraph.cpp[610] Message : Unable to read composite index range: Aborted (core dumped) Attached files .geo and .msh are what I am working on. ,-~~-.___._. / | ' \ | |--------. Vidhi Zala ( ) 0 | | | School of Computing \_/-, ,----' | | | Scientific Computing and Imaging Institute ==== !_!-v---v--. University of Utah / \-'~; .--------. / __/~| ._-""|| | vidhi.zala@utah.edu =( _____|_|____||________| http://sci.utah.edu/people/vidhi.html I support Ruff Haven Crises Shelter for Homeless Pets <https://www.ruffhaven.org/donate>. Consider a donation today :)
******************* This email 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 https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address. ******************* Hi All, I figured this out and I'm sending my solution for anyone who might get stuck with this problem. While creating a mesh using gmsh, it is important to make physical groups. That is how NekMesh recognizes if there are multiple element types in one mesh. This may not be the most elegant way but it got me the XML file successfully. Thanks V ,-~~-.___._. / | ' \ | |--------. Vidhi Zala ( ) 0 | | | School of Computing \_/-, ,----' | | | Scientific Computing and Imaging Institute ==== !_!-v---v--. University of Utah / \-'~; .--------. / __/~| ._-""|| | vidhi.zala@utah.edu =( _____|_|____||________| http://sci.utah.edu/people/vidhi.html I support Ruff Haven Crises Shelter for Homeless Pets <https://www.ruffhaven.org/donate>. Consider a donation today :) On Tue, Feb 23, 2021 at 9:11 PM Vidhi Zala <vidhi.zala@utah.edu> wrote:
Hi all,
I am trying to use NekMesh to convert a 2D mesh made using gmsh to XML. I am successful in converting a msh file which has only 1 type of element (only quad or tri). However, when I try to convert a mesh that has quads and triangles together, it gives me the following error:
Fatal : Level 0 assertion violation
Where : nektar++/library/SpatialDomains/MeshGraph.cpp[610]
Message : Unable to read composite index range:
terminate called after throwing an instance of 'Nektar::ErrorUtil::NekError'
what(): Level 0 assertion violation
Where : nektar++/library/SpatialDomains/MeshGraph.cpp[610]
Message : Unable to read composite index range:
Aborted (core dumped)
Attached files .geo and .msh are what I am working on.
,-~~-.___._. / | ' \ | |--------. Vidhi Zala ( ) 0 | | | School of Computing \_/-, ,----' | | | Scientific Computing and Imaging Institute ==== !_!-v---v--. University of Utah / \-'~; .--------. / __/~| ._-""|| | vidhi.zala@utah.edu =( _____|_|____||________| http://sci.utah.edu/people/vidhi.html I support Ruff Haven Crises Shelter for Homeless Pets <https://www.ruffhaven.org/donate>. Consider a donation today :)
participants (1)
- 
                
                Vidhi Zala