Regarding importing of .inp format mesh file

201 views
Skip to first unread message

Pratik Pophali

unread,
Aug 5, 2021, 2:26:02 AM8/5/21
to sparselizardforum
Hello all,
I want to import a .inp mesh format in sparselizard. Has anyone tried this before? If you have any information regarding how to import it in sparselizard, please suggest it to me.

One method which I tried was importing the .inp file in GMSH and then exporting a .msh file from GMSH but, this doesn't work. The GMSH can't read .inp format mesh.

If there is any other way, please tell me.

Thank you

Alexandre Halbach

unread,
Aug 5, 2021, 2:47:25 AM8/5/21
to Pratik Pophali, sparselizardforum
The only alternative to gmsh you could try is using petsc to load it , although I don t think it is supported:

mesh mymesh("petsc:yourmesh.inp");

When you say it does not work with gmsh, do you mean that it is not supported at all by gmsh or it is but on your mesh it does not work properly?

Alex

--
You received this message because you are subscribed to the Google Groups "sparselizardforum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sparselizardfo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sparselizardforum/f669b233-2195-4124-9603-c4d6d282d51cn%40googlegroups.com.

Pratik Pophali

unread,
Aug 5, 2021, 3:22:47 AM8/5/21
to sparselizardforum
.inp file is not supported at all by GMSH. We can export a .inp format from GMSH but, can't read the same format in it. 
Earlier you told me that we can do it with GMSH API. Will it be possible?

Regarding petsc, I think it doesn't support quad elements because I tried it with .msh mesh. It only supports triangular elements.

Alexandre Halbach

unread,
Aug 5, 2021, 5:51:47 AM8/5/21
to Pratik Pophali, sparselizardforum
The gmsh api is, as the name indicates, nothing more than an API for gmsh, and therefore does not support more reading formats than through the GUI.

If .inp format is easy to parse it can be added but I am sure there is software online to convert .inp to something reable by gmsh

Alex

Jeremy Theler

unread,
Aug 5, 2021, 7:34:07 AM8/5/21
to Alexandre Halbach, Pratik Pophali, sparselizardforum
I wonder how these *.inp files handle physical entities. Let me know if you can make it work.

alexandr...@gmail.com

unread,
Aug 12, 2021, 2:18:38 AM8/12/21
to sparselizardforum

Thanks Jeremy,

After another post from Pratik it seems that this is not straightforward. Gmsh support will give more help on that if anyone has interest in asking them.

Alex
Reply all
Reply to author
Forward
0 new messages