<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">Here's what the scripts will look like (not everything is in the SVN trunk yet):</div><div class=""><br class=""></div><div class="">SetFactory("OpenCASCADE");<br class=""><br class="">Mesh.Algorithm = 6;<br class="">Mesh.CharacteristicLengthMin = 0.4;<br class="">Mesh.CharacteristicLengthMax = 0.4;<br class=""><br class="">R = 1.4;<br class="">s = .7;<br class="">t = 1.25;<br class=""><br class="">Block(1) = {-R,-R,-R, R,R,R};<br class=""><br class="">Sphere(2) = {0,0,0,R*t};<br class=""><br class="">BooleanIntersection(3) = { Volume{1}; Delete; }{ Volume{2}; Delete; };<br class=""><br class="">Cylinder(4) = {-2*R,0,0, 2*R,0,0, R*s};<br class="">Cylinder(5) = {0,-2*R,0, 0,2*R,0, R*s};<br class="">Cylinder(6) = {0,0,-2*R, 0,0,2*R, R*s};<br class=""><br class="">BooleanUnion(7) = { Volume{4}; Delete; }{ Volume{5}; Delete; };<br class="">BooleanUnion(8) = { Volume{6}; Delete; }{ Volume{7}; Delete; };<br class="">BooleanSubtraction(9) = { Volume{3}; Delete; }{ Volume{8}; Delete; };<br class=""><br class=""><br class=""></div><div class=""><img apple-inline="yes" id="9720D43B-B1CD-4E7D-AE2B-76367EF0B030" src="cid:3AF5F5B9-FF28-4D6A-A919-A586EDB01761@home" class=""><img apple-inline="yes" id="1D9DD721-B3CD-43CE-9033-614D892F31B6" src="cid:E9AA433E-F89B-4F54-B544-D8B89E8FD0D9@home" class=""></div><div class=""><br class=""></div><br class=""><blockquote type="cite" class="">On 2 Feb 2017, at 23:28, G. D. McBain <<a href="mailto:gdmcbain@protonmail.com" class="">gdmcbain@protonmail.com</a>> wrote:<br class=""><br class=""><br class=""><br class="">Sent from ProtonMail, Swiss-based encrypted email.<br class=""><br class=""><br class=""><blockquote type="cite" class="protonmail_quote">-------- Original Message --------<br class="">Subject: [Gmsh] BRL-CAD for Geometry?<br class="">Local Time: 2 février 2017 4:07 PM<br class="">UTC Time: 2 février 2017 05:07<br class="">From: <a href="mailto:toddcpierce@gmail.com" class="">toddcpierce@gmail.com</a><br class="">To: gmsh@onelab.info<br class=""><br class="">Hi All, <br class="">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 class="">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 class=""><br class="">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.<br class=""></blockquote><br class="">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 class=""><br class="">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 class=""><br class="">OpenSCAD is an excellent accompaniment to FreeCAD too, especially via Solid Python.<br class=""><br class="">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 class=""><br class="">I haven't looked into OneLab yet.<br class=""><br class="">_______________________________________________<br class="">gmsh mailing list<br class=""><a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class="">http://onelab.info/mailman/listinfo/gmsh<br class=""></blockquote><br class=""><div class="">-- <br class="">Prof. Christophe Geuzaine<br class="">University of Liege, Electrical Engineering and Computer Science <br class=""><a href="http://www.montefiore.ulg.ac.be/~geuzaine" class="">http://www.montefiore.ulg.ac.be/~geuzaine</a><br class=""><br class="">Free software: http://gmsh.info | http://getdp.info | http://onelab.info<br class=""></div><br class=""></body></html>