Page 1 of 1

which Gmsh file format is best to use?

Posted: 26 Nov 2022, 16:53
by Galliandri
Hi

I am using the command

Elmergrid 14 2 filename

to translate from filename.msh to the grid format understood by ElmerSolver


However Gmsh has a version 4 as well a legacy version 2 mesh file format. I have no problem using the version 2 in creating the required 4 files

mesh.boundary, elements , header, nodes inside folder filename/

but with version 2 I get

run-time error
allocation failure 2 in imatrix()

Could it be because Elmergrid was written to understand the legacy version 2 only ?

Re: which Gmsh file format is best to use?

Posted: 26 Nov 2022, 17:08
by raback
Both should be fine. If you have issues provide the file causing problems. -Peter