victorsndvg / FEconv

Program feconv is an utility to convert between several mesh and FE field formats, like ANSYS mesh files (.msh), MD Nastran input files (.bdf), I-Deas Universal (.unv), VTK files (.vtk), etc. If you use a Modulef format to store an intermediate mesh (.mfm). It can transform the FE type of a mesh composed of trangles or tetrahedra, to Lagrange P1 or P2, Raviart-Thomas (face) or Whitney (edge) finite elements. It also uses third-party code to perform bandwidth optimization (CutlHill-McKee optimization).
GNU General Public License v3.0
91 stars 25 forks source link

Segmentation fault when converting ansys msh to unv #11

Closed Kajitrim closed 1 year ago

Kajitrim commented 1 year ago

Hello all, I am trying to convert an ANSYS .msh into a gsh .msh using a .unv intermediate file. However when I run: ./feconv Barge_test/Barge.msh Barge_test/Barge.unv The following error is returned:

 Space dimension: 3

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x66d81f in ???
#1  0x54d790 in __module_manage_msh_fcnv_MOD_read_msh
#2  0x54e267 in __module_msh_fcnv_MOD_load_msh
#3  0x598a6a in __module_feconv_MOD_convert
#4  0x40a7c6 in MAIN__
#5  0x40a802 in main
Segmentation fault

What is happening? I ran the examples which worked without any issues.

Kajitrim commented 1 year ago

Found the solution for those with the same issue: you need to change Ansys export options by going into Ansys meshing, Tools/Options/Meshing/Export/ANSYS Fluent and set the "Format of input file (*.msh)" to ASCII