<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head><body lang="IT" link="blue" vlink="purple"><div>Awesome!<br><br></div>
<div><!-- tmjah_g_1299s -->Guillaume<!-- tmjah_g_1299e --></div>
<div class="gmail_quote" >Le 3 févr. 2017, à 16:44, Alessandro Vicini <<a href="mailto:alessandro.vicini@sitael.com" target="_blank">alessandro.vicini@sitael.com</a>> a écrit:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"></span></p><p> </p><p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Cool…!!
</span><span style="font-size:11.0pt;font-family:Wingdings;color:#1F497D">J</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"></span></p><p></p><p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"></span></p><p> </p><p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"></span></p><p> </p><p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"></span></p><p> </p><p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif"">Da:</span></b><span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif""> gmsh [mailto:gmsh-bounces@ace20.montefiore.ulg.ac.be]
<b>Per conto di </b>Christophe Geuzaine<br>
<b>Inviato:</b> venerdì 3 febbraio 2017 14.49<br>
<b>A:</b> G. D. McBain<br>
<b>Cc:</b> gmsh@onelab.info<br>
<b>Oggetto:</b> Re: [Gmsh] BRL-CAD for Geometry?</span></p><p></p><p></p>
</div>
</div>
<p class="MsoNormal"></p><p> </p>
<div>
<p class="MsoNormal"></p><p> </p>
</div>
<div>
<p class="MsoNormal">As a little teaser, just to let you know that I'm coding a direct interface to OpenCASCADE CAD creation right in .geo files. This will in particular support automatic creation of conform interfaces when you fuse solids, in order to handle
internal boundaries.</p><p></p>
</div>
<div>
<p class="MsoNormal"></p><p> </p>
</div>
<div>
<p class="MsoNormal">Here's what the scripts will look like (not everything is in the SVN trunk yet):</p><p></p>
</div>
<div>
<p class="MsoNormal"></p><p> </p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">SetFactory("OpenCASCADE");<br>
<br>
Mesh.Algorithm = 6;<br>
Mesh.CharacteristicLengthMin = 0.4;<br>
Mesh.CharacteristicLengthMax = 0.4;<br>
<br>
R = 1.4;<br>
s = .7;<br>
t = 1.25;<br>
<br>
Block(1) = {-R,-R,-R, R,R,R};<br>
<br>
Sphere(2) = {0,0,0,R*t};<br>
<br>
BooleanIntersection(3) = { Volume{1}; Delete; }{ Volume{2}; Delete; };<br>
<br>
Cylinder(4) = {-2*R,0,0, 2*R,0,0, R*s};<br>
Cylinder(5) = {0,-2*R,0, 0,2*R,0, R*s};<br>
Cylinder(6) = {0,0,-2*R, 0,0,2*R, R*s};<br>
<br>
BooleanUnion(7) = { Volume{4}; Delete; }{ Volume{5}; Delete; };<br>
BooleanUnion(8) = { Volume{6}; Delete; }{ Volume{7}; Delete; };<br>
BooleanSubtraction(9) = { Volume{3}; Delete; }{ Volume{8}; Delete; };<br>
<br>
</p><p></p>
</div>
<div>
<p class="MsoNormal"><img width="1280" height="971" id="_x0039_720D43B-B1CD-4E7D-AE2B-76367EF0B030" src="cid:image001.png@01D27E36.4943CE80"><img width="1280" height="971" id="_x0031_D9DD721-B3CD-43CE-9033-614D892F31B6" src="cid:image002.png@01D27E36.4943CE80"></p><p></p>
</div>
<div>
<p class="MsoNormal"></p><p> </p>
</div>
<p class="MsoNormal"><br>
<br>
</p><p></p>
<p class="MsoNormal">On 2 Feb 2017, at 23:28, G. D. McBain <<a href="mailto:gdmcbain@protonmail.com">gdmcbain@protonmail.com</a>> wrote:<br>
<br>
<br>
<br>
Sent from ProtonMail, Swiss-based encrypted email.<br>
<br>
<br>
<br>
</p><p></p>
<p class="MsoNormal">-------- Original Message --------<br>
Subject: [Gmsh] BRL-CAD for Geometry?<br>
Local Time: 2 février 2017 4:07 PM<br>
UTC Time: 2 février 2017 05:07<br>
From: <a href="mailto:toddcpierce@gmail.com">toddcpierce@gmail.com</a><br>
To: <a href="mailto:gmsh@onelab.info">gmsh@onelab.info</a><br>
<br>
Hi All, <br>
It's me again, wondering how I should go about integrating a command-line geometry package into OneLab (or some other chain of multi-physics tools).<br>
As I've mentioned before, although there is no shortage of tools to do meshing, finite element analysis or CFD and so forth, there is no simple way to build geometries from the command line. <br>
<br>
Has anybody ever used this BRL-CAD/Mged command line CAD package? It doesn't look bad, but I do have concerns about it exporting to formats that these meshing and physics programs use.</p><p></p>
<p class="MsoNormal"><br>
In the past I have used BRL-CAD's mged command-line tool to create geometries for subsequent CFD simulations. I used BRL-CAD's g-stl command-line tool to export a triangulation of the bounding surface in STL format. Gmsh can read this in.<br>
<br>
More recently though I'm using FreeCAD which can be scripted in Python and so run from the command-line. Besides STL, this also outputs IGES, STEP, and BRep, which can contain more information that STL. Gmsh reads all four formats.<br>
<br>
OpenSCAD is an excellent accompaniment to FreeCAD too, especially via Solid Python.<br>
<br>
Often my workflow looks like FreeCAD -> Gmsh -> FreeFem++ -> (Gmsh or pandas), with the whole thing run from a single SCons build file. No GUIs, except for preliminary exploratory work.<br>
<br>
I haven't looked into OneLab yet.<br>
<br>
_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh">http://onelab.info/mailman/listinfo/gmsh</a></p><p></p>
<p class="MsoNormal"></p><p> </p>
<div>
<p class="MsoNormal">-- <br>
Prof. Christophe Geuzaine<br>
University of Liege, Electrical Engineering and Computer Science <br>
<a href="http://www.montefiore.ulg.ac.be/~geuzaine">http://www.montefiore.ulg.ac.be/~geuzaine</a><br>
<br>
Free software: <a href="http://gmsh.info">http://gmsh.info</a> | <a href="http://getdp.info">
http://getdp.info</a> | <a href="http://onelab.info">http://onelab.info</a></p><p></p>
</div>
<p class="MsoNormal"></p><p> </p>
</div>
<pre class="blue"><hr><br>gmsh mailing list<br>gmsh@onelab.info<br><a href="http://onelab.info/mailman/listinfo/gmsh">http://onelab.info/mailman/listinfo/gmsh</a><br></pre></blockquote></div></body></html>