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

Convert GMSH .msh to ANSYS .msh #7

Open ghost opened 3 years ago

ghost commented 3 years ago

Hello,

Using the following command ./feconv -gm input_GMSH.msh output_ANSYS.msh results in the program running for very long but does not output anything. This is in ubuntu 20.04.

Thanks,

Peter

fran-pena commented 3 years ago

Hi,

there is a not stressed enough hole in the documentation: you cannot directly convert from one MSH format to another MSH one. You have to use a third format instead. For example:

./feconv -gm input_GMSH.msh tmp.unv ./feconv tmp.unv output_ANSYS.msh

I will try to clarify this point in the documentation.

Best, Fran Pena

El mar, 22 dic 2020 a las 9:07, PeterZtrok (notifications@github.com) escribió:

Hello,

Using the following command ./feconv -gm input_GMSH.msh output_ANSYS.msh results in the program running for very long but does not output anything. This is in ubuntu 20.04.

Thanks,

Peter

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/victorsndvg/FEconv/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRM23NGDXXZPPITPLBG6MDSWBHT7ANCNFSM4VFJCVRQ .

--

Francisco José Pena Brage Departamento de Matemática Aplicada Facultade de Matemáticas. Campus Vida 15782 Santiago de Compostela - Spain Tel.: +34 8818 13194 Fax: +34 8818 13197 Email: fran(dot)pena(at)usc(dot)es http://www.usc.es/ingmat http://www.usc.es/ingmat fran.pena@usc.es

ghost commented 3 years ago

Ok thanks. I will try to convert like that. How much should it take for a 500MB mesh? Thanks, Peter

fran-pena commented 3 years ago

Hi,

I cannot give you a realistic prediction: it depends on your machine, the format (ANSYS is quite slow since a surface-volume conversion), the compiler (ifort is faster than gfortran), ...

It would be helpful to make a preliminary test with a smaller mesh in order to be sure that there is no problem.

Best, Fran Pena

El mar, 22 dic 2020 a las 11:43, PeterZtrok (notifications@github.com) escribió:

Ok thanks. I will try to convert like that. How much should it take for a 500MB mesh? Thanks, Peter

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/victorsndvg/FEconv/issues/7#issuecomment-749476274, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRM23N33L7Y7MQDCYVBAI3SWBZ4TANCNFSM4VFJCVRQ .

ghost commented 3 years ago

Helo,

I have reduced the size of the mesh which is a 3D unstructured mesh. However, I have not been able to convert it to a .unv format to convert that to ANSYS .msh. However, I have tried some of the examples and they do work. This is on linux using gfortran. The mesh is created in GMSH and saved in ASCII Version 2 format. Any ideas on what I can try?

fran-pena commented 3 years ago

Hi,

so the step that is failing is the first one: feconv -gm mesh.msh mesh.unv, right?

Is any warning or error in the output? The format is correct (ASCII Version 2). Maybe, it could be a problem with non-consecutive numbering, but it is difficult to say more without knowing the mesh. If you can send me the mesh, I can give you a better answer.

Best, Fran

El mar, 22 dic 2020 a las 16:22, PeterZtrok (notifications@github.com) escribió:

Helo,

I have reduced the size of the mesh which is a 3D unstructured mesh. However, I have not been able to convert it to a .unv format to convert that to ANSYS .msh. However, I have tried some of the examples and they do work. This is on linux using gfortran. The mesh is created in GMSH and saved in ASCII Version 2 format. Any ideas on what I can try?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/victorsndvg/FEconv/issues/7#issuecomment-749595219, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRM23N5KOBKNCNLHN4PGUDSWC2TDANCNFSM4VFJCVRQ .