Elmer and GMSH on MacOS

The graphical user interface of Elmer
lpedroza
Posts: 7
Joined: 26 Feb 2019, 04:50
Antispam: Yes

Elmer and GMSH on MacOS

Post by lpedroza » 26 Feb 2019, 04:53

Hi,

I got some problems using .msh files from GMSH on Elmer, it doesn't work anyway.

I've created and done everything I could, but it didn't work.

Any hints?

mzenker
Posts: 1945
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Elmer and GMSH on MacOS

Post by mzenker » 26 Feb 2019, 12:22

Could you post a .msh file that doesn't work

Matthias

kevinarden
Posts: 235
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Elmer and GMSH on MacOS

Post by kevinarden » 26 Feb 2019, 12:45

Since I updated to the most recent GMSH it doesn't work for me either. Linux Mint installation. I assumed it was because GMSH started using a new mesh format. I work around it by going to GMSH parameters and change mesh.format=2 which saves the mesh as a universal file. Attached is a msh file that doesn't import to GUI for me.
3dstrip.msh
(286.44 KiB) Downloaded 35 times

mzenker
Posts: 1945
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Elmer and GMSH on MacOS

Post by mzenker » 26 Feb 2019, 19:11

Hi,

I see the same behaviour. Loading the file in gmsh, export, gmsh MSH, version 2.0 ASCII produces a file ElmerGUI can read.

@Elmer team: are there plans to implement a parser for the new gmsh format in ElmerGrid / ElmerGUI?

Matthias

lpedroza
Posts: 7
Joined: 26 Feb 2019, 04:50
Antispam: Yes

Re: Elmer and GMSH on MacOS

Post by lpedroza » 26 Feb 2019, 21:27

mzenker wrote:
26 Feb 2019, 12:22
Could you post a .msh file that doesn't work

Matthias
This is a file that I've been trying to work on
Attachments
Novo.msh
(115.62 KiB) Downloaded 32 times

lpedroza
Posts: 7
Joined: 26 Feb 2019, 04:50
Antispam: Yes

Re: Elmer and GMSH on MacOS

Post by lpedroza » 26 Feb 2019, 21:28

mzenker wrote:
26 Feb 2019, 19:11
Hi,

I see the same behaviour. Loading the file in gmsh, export, gmsh MSH, version 2.0 ASCII produces a file ElmerGUI can read.

@Elmer team: are there plans to implement a parser for the new gmsh format in ElmerGrid / ElmerGUI?

Matthias

Could you make it work?

kevinarden
Posts: 235
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Elmer and GMSH on MacOS

Post by kevinarden » 27 Feb 2019, 01:12

Go to GMSH help. current options and workspace, search for mesh.format, change it to a value of 2, goto file save mesh, GMSH will then save it as a *.unv file that ElmerGUI ro ElmerGrid can read.

lpedroza
Posts: 7
Joined: 26 Feb 2019, 04:50
Antispam: Yes

Re: Elmer and GMSH on MacOS

Post by lpedroza » 27 Feb 2019, 01:43

kevinarden wrote:
27 Feb 2019, 01:12
Go to GMSH help. current options and workspace, search for mesh.format, change it to a value of 2, goto file save mesh, GMSH will then save it as a *.unv file that ElmerGUI ro ElmerGrid can read.
Well, I did it, but now Elmer quits unexpectedly every time I open the .unv file

Leo

kevinarden
Posts: 235
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Elmer and GMSH on MacOS

Post by kevinarden » 27 Feb 2019, 03:10

I have occasionally had that issue, but ElmerGrid has worked. Open a terminal window and change to the directory where the unv file is.

type ElmerGrid, hit enter to get help info.

Convert unv to Elmer mesh is

ElmerGrid 8 2 mymesh.unv

mzenker
Posts: 1945
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Elmer and GMSH on MacOS

Post by mzenker » 27 Feb 2019, 11:29

I have never understood why ElmerGUI doesn't use ElmerGrid directly or at least a common codebase...

Matthias

Post Reply