<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.6036" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=406181811-16112010>Hello Sam,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=406181811-16112010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=406181811-16112010>I am doing an automatic calculation program, which uses
GMSH as a mesher. This choice was driven by the necessity of keeping a track of
each previously named selection. I import .stp files with named surfaces and
edges. I don't thinck there is a way to view these names directly in GMSH, but
the order of the elements (ADVANCED_FACE and VERTEX_POINT) in the .stp file are
maintained in the GMSH numbering. I wrote a small script to translate the names
of the .stp file into the GMSH numbering and write the GMSH script file
(.geo).</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=406181811-16112010>This only works if the geometry repair
options are disabled (Geometery.Autocoherence, .OCCFixSmallEdges,
.OCCFixSmallFaces, .OCCSewFaces, .OCCConnectFaces =0), otherwise the
numbering might be automatically changed by GMSH.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=406181811-16112010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=406181811-16112010>This isn't very sexy, but Salome doesn't even alow
this for example (AND GMSH's meshing is great and
easy).</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=406181811-16112010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=406181811-16112010>Good luck,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=406181811-16112010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=406181811-16112010>Michael</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV class=Section1>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Wai Sam Wong [mailto:anthropoy@gmail.com]
<BR><B>Sent:</B> lundi, 15. novembre 2010 15:34<BR><B>To:</B>
gmsh@geuz.org<BR><B>Subject:</B> [Gmsh] Define physical groups in CAD
file<BR></FONT><BR></DIV>
<DIV></DIV>Hi there,
<DIV><BR></DIV>
<DIV>Does anyone know how to add boundary conditions information into CAD files,
e.g. .stp, .igs or .brep, for example using opencascade or salome? So that this
will ease the setting of boundary conditions in gmsh itself after importing the
CAD models. Thanks!</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>Sam</DIV></BODY></HTML>