<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Olivier,<br>
Since my original post, I have found that ElmerGrid built into
ElmerGUI does not properly convert .msh to mesh.*. However, the
stand-alone ElmerGrid executed from the command line does properly
convert the gmsh file. This is an acceptable work-around for me.
More details have been posted to the Elmer forum on "External
Tools." <br>
<br>
Thank you for your reply.<br>
<br>
Jack<br>
<br>
<blockquote type="cite">
<pre>Hello,
Did you used ElmerGrid to convert the gmsh mesh in Elmer format?
This is simply done by
ElmerGrid 14 2 gmsh.msh
You will get the directory gmsh, containing the 4 Elmer mesh files
(mesh.header, mesh.elements, mesh.nodes and mesh.boundary).
Hope it helps.
OG
Le 13/06/12 14:20, Jack Mandelman a écrit :
><i> I recently constructed a 3D model in gmsh to investigate capacitive
</i>><i> coupling among a plurality of microstrip conductors oriented at
</i>><i> various angles to one-and-other. One model of interest contains three
</i>><i> dielectric regions. Each dielectric region is defined by a physical
</i>><i> volume entity in gmsh. Here is the problem encountered when using the
</i>><i> gmsh generated 3D mesh (V2 ascii .msh format) in Elmer:
</i>><i>
</i>><i> Although the original .msh file from gmsh has 3 dielectric regions,
</i>><i> Elmer claims that it has 5 bodies. Since the mesh is unstructured and
</i>><i> is moderately complex (~300K tetrehedral elements), displaying the 5
</i>><i> bodies identified by Elmer is intractable. I found that the following
</i>><i> procedure results in a correct translation of the mesh from gmsh to Elmer.
</i>><i>
</i>><i> 1) In gmsh, construct a .geo file, generate mesh and save as ascii V1
</i>><i> .msh file.
</i>><i> 2) Import ascii V1 .msh file (from 1 above) into EnGrid.
</i>><i> 3) Export from EnGrid as a gmsh ascii V2 .msh file.
</i>><i> 4) Open gmsh ascii V2 .msh file (from 3 above) with Elmer.
</i>><i> 5) Proceed to build Elmer .sif file.
</i>><i>
</i>><i> So far, only when I generate a V1 .msh file and convert is to a V2
</i>><i> .msh format with EnGrid can I successfully use the mesh in Elmer. I
</i>><i> don't know if this is a bug in gmsh or Elmer, or perhaps an
</i>><i> incompatibility between versions. I am using Elmer version
</i>><i> 6.1.0.svn.5272.dfsg-1ubuntu2 and gmsh version
</i>><i> 2.5.1~beta1~svn9724~dfsg-1 in linux mint 12. Any comments and/or
</i>><i> suggestions regarding this issue are greatly appreciated.
</i>><i>
</i>><i> Dr. Jack Mandelman (aka "The Modelman")
</i>><i>
</i>><i>
</i>><i> _______________________________________________
</i>><i> gmsh mailing list
</i>><i> <a href="http://www.geuz.org/mailman/listinfo/gmsh">gmsh at geuz.org</a>
</i>><i> <a href="http://www.geuz.org/mailman/listinfo/gmsh">http://www.geuz.org/mailman/listinfo/gmsh</a>
</i>
--
-----------------------------------------------------------------------------------------------------------------
*Olivier Gagliardini *
Maître de Conférences LGGE UJF / CNRS
Membre junior de l'Institut Universitaire de France</pre>
</blockquote>
</body>
</html>