How do I get an .inp file from Gmsh? I need to create a simple geometry and mesh it and define the boundary conditions in Gmsh and export it as an .inp file at the end (because I need to use it in a third party solver). I couldn't find much help from the documentation of Gmsh it seems there exists a mesh file format in Gmsh that exits in two flavors: ASCII and binary.
If you need to get started with gmsh from scratch, take a look at their tutorial section here, their wiki or on youtube.
You can mesh your created geometry and export it as an .inp file. In the gui use: File -> Export -> then select .inp as file format. If you want to use gmsh from the command line look here. For defining boudary conditions take a look here. I'm not 100% sure but I don't think you can define boundary conditions as such in gmsh. You'll have to create a Physical Group for that, see her in their documentation.
.inpis a pretty generic extension. Is there any formal format specification or where is it going to be used? $\endgroup$
meshiolibrary, but realized that someone has already posted an answer: scicomp.stackexchange.com/a/34456/18289 I can highly recommend that actively maintained Python library. $\endgroup$