problem importing msh files

The graphical user interface of Elmer
Post Reply
lbroche
Posts: 6
Joined: 07 Feb 2011, 16:12

problem importing msh files

Post by lbroche »

Hi,

I have some problems opening MSH files. I have not seen anything similar in this forum.

I have created a simple geometry and meshed it with GMSH (see attachement). This worked fine, the mesh was correct.
Then I opened it with ElmerGUI but it does not provide the same result (see attachement). It seems like only some vertexes are kept. This effect happens also with 3D geometries.

Is there a conversion to perform somewhere?
Attachments
Mesh generated by GMSH
Mesh generated by GMSH
InitialMesh.png (234.87 KiB) Viewed 4846 times
Mesh opened by ElmerGUI
Mesh opened by ElmerGUI
ElmerMesh.png (41.61 KiB) Viewed 4846 times
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: problem importing msh files

Post by mzenker »

Hi,

your problem might be related to defining or not defining physical surfaces in gmsh. Or it might be that the geometry is there, but ElmerGUI shows only a part of it. You may have to enable View->Volume mesh.
In which format did you save your mesh in gmsh?
If it is not too large, you might post your msh file here so that others can have a look.´

HTH,

Matthias
lbroche
Posts: 6
Joined: 07 Feb 2011, 16:12

Re: problem importing msh files

Post by lbroche »

Hi Matthias,

Thanks for your reply.
Here is the file, it is an msh extension. I had to modify the mesh to make it lighter for the upload but the problem is still there.
I have tried to activate the view->volume mesh option but it does not make a difference.
At the moment I have not defined any physical surface. I will try to do it and see what happens, but I first have to read the doc of GMSH because I am not familiar with it.
Attachments
Plane_1.msh
Mesh file
(4.24 KiB) Downloaded 324 times
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: problem importing msh files

Post by raback »

Hi

For me (with a current Windows version) your mesh comes in fine (104 triangles, 170 edges). Perhaps the problems are due to faulty rendering. See Model -> Summary in the GUI to see if you in fact have the elements but the graphics card just won't cooperate.

One problem you do have is that the mesh is in (x,z) plane while Elmer by default assumes (x,y) plane for 2D problems. You can fix this in Setup meny where you set "Coordinate Mapping = 1 3 2".

-Peter
lbroche
Posts: 6
Joined: 07 Feb 2011, 16:12

Re: problem importing msh files

Post by lbroche »

Hi Peter,

Thanks for your suggestions.
I have modified the coordinate mapping as you indicate but this had no effect.
Here is what I can see from the model summary menu:

FINITE ELEMENT MESH
Mesh dimension: 2
Leading element dimension: 3
Nodes: 70
Volume elements: 0
Surface elements: 110
Edge elements: 179
Point elements: 0

ELEMENT TYPES
303: 110
202: 179

BOUNDING BOX
X-coordinate: [ -100000 , 100000 ]
Y-coordinate: [ 0 , 0 ]
Z-coordinate: [ 0 , 200000 ]

GENERAL
Equations: 0
Materials: 0
Boundary conditions: 0
Body properties: 0

VOLUME BODIES
Undetermined: 0
Total: 0 volume bodies

SURFACE BODIES
Body 1: 110 surface elements
Undetermined: 0
Total: 1 surface bodies

EDGE BODIES
Undetermined: 0
Total: 0 edge bodies

SURFACE BOUNDARIES
Undetermined: 0
Total: 0 surface boundaries

EDGE BOUNDARIES
Boundary 3: 28 edge elements
Undetermined: 0
Total: 1 edge boundaries



It seems like all the edges are not here. I suppose this does not come from the graphics card?
For info, I have installed ELmer 5.5.0 from the Debian Lenny repositories.
hazelsct
Posts: 153
Joined: 05 Oct 2009, 17:02
Location: Boston, MA, USA
Contact:

Re: problem importing msh files

Post by hazelsct »

Hi, the Debian Lenny version is very old. You can get a new(er) version from http://www.opennovation.org/debian/ but it's revision 4256 so it's also pretty old (October 2009).
Post Reply