<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1486762164984_5722">Hello Todd,</div><div id="yui_3_16_0_ym19_1_1486762164984_5696"><br></div><div id="yui_3_16_0_ym19_1_1486762164984_5697" dir="ltr">looking at the documentation you will find useful command. You may have a look at the following :</div><div dir="ltr" id="yui_3_16_0_ym19_1_1486762164984_5840">delete model; I add it at the beginning of every geo file<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1486762164984_5841">merge file.geo;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1486762164984_5975">You can set environment settings in the geo file also (mesh size, mesh algorithm, visibility of node etc...).</div><div dir="ltr" id="yui_3_16_0_ym19_1_1486762164984_5976">I suggest you plan with GUI functions then edit the script with Geometry/Edit script. After you can copy paste and start build your geo file.<br></div><div id="yui_3_16_0_ym19_1_1486762164984_5695"><span>Good luck.</span></div><div id="yui_3_16_0_ym19_1_1486762164984_6117"><span><br></span></div><div><span>Fabrice.</span></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1486762164984_5688"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1486762164984_5828" style="display: block;">  <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1486762164984_5827"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1486762164984_5826"> <div dir="ltr" id="yui_3_16_0_ym19_1_1486762164984_5842"> <font id="yui_3_16_0_ym19_1_1486762164984_5847" face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">De :</span></b> Todd Pierce <toddcpierce@gmail.com><br> <b><span style="font-weight: bold;">À :</span></b> gmsh@onelab.info <br> <b><span style="font-weight: bold;">Envoyé le :</span></b> Vendredi 10 février 2017 18h31<br> <b><span style="font-weight: bold;">Objet :</span></b> [Gmsh] Meshing on command line<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1486762164984_5825"><br><div id="yiv1692010081"><div dir="ltr" id="yui_3_16_0_ym19_1_1486762164984_5824"><div id="yui_3_16_0_ym19_1_1486762164984_5823"><div id="yui_3_16_0_ym19_1_1486762164984_5822"><div id="yui_3_16_0_ym19_1_1486762164984_5821"><div id="yui_3_16_0_ym19_1_1486762164984_5820"><div id="yui_3_16_0_ym19_1_1486762164984_5819"><div id="yui_3_16_0_ym19_1_1486762164984_5818"><div id="yui_3_16_0_ym19_1_1486762164984_5817"><div id="yui_3_16_0_ym19_1_1486762164984_5816"><div id="yui_3_16_0_ym19_1_1486762164984_5815"><div id="yui_3_16_0_ym19_1_1486762164984_5814"><div id="yui_3_16_0_ym19_1_1486762164984_5813"><div id="yui_3_16_0_ym19_1_1486762164984_5812"><div id="yui_3_16_0_ym19_1_1486762164984_5811"><div id="yui_3_16_0_ym19_1_1486762164984_5810"><div id="yui_3_16_0_ym19_1_1486762164984_5809"><div id="yui_3_16_0_ym19_1_1486762164984_5808"><div id="yui_3_16_0_ym19_1_1486762164984_5807">Crew, <br><br></div>I may sound like an idiot, but at least I'm less of an idiot than I was a week ago.<br><br></div>I have gotten a grip of defining geometries using the interactive(.cpp) interface.  At this stage there are a couple of weird things. <br><br></div>Loading a file seems to happen with the "Include" command.  I'm OK with that, but is there an "Open" command?<br><br></div>Also, even if I select "Clear" from the GUI menu and load another file from the GUI menu, ensuing files don't seem to load the same as if they did when gmsh was just started.  What would be really handy is a command (on the command line) to clear the display and all environment settings back to when gmsh was started.<br><br></div>So, now that I'm not really qualified to do what I'm already doing, I have decided to proceed with meshing.  Using, say, the t12.geo tutorial example, I can run gmsh with the "-2" option and it generates a mesh file, and then load the mesh file to view it.  I'm rather thrilled that the default settings for meshing were exactly what I like.<br><br></div>However, exiting a program and re-running it to generate a mesh seems to violate the point of interactivity from the command line.  The "Mesh 2" command doesn't do anything, so I'm at a bit of a loss.<br><br></div>The way I'd like things to work is as such:<br><br></div>gmsh> open a file<br></div>gmsh> type some command to mesh the geometry and have it immediately visible.<br><br></div>or, if that's not possible, <br><br></div>gmsh> open a file<br></div>gmsh> type some command to generate the mesh file<br></div>gmsh> type a command to clear *everything* so that displaying the mesh works.<br></div>gmsh> type a command to open the mesh file<br><br></div>And yes, I know I'm getting ahead of myself.  Any ideas are helpful.<br><br></div>Thanks in advance.<br><br></div>-Todd<br><div><div><div><br><br><div><div><div><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br>_______________________________________________<br>gmsh mailing list<br><a ymailto="mailto:gmsh@onelab.info" href="mailto:gmsh@onelab.info">gmsh@onelab.info</a><br><a href="http://onelab.info/mailman/listinfo/gmsh" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br><br><br></div> </div> </div>  </div></div></body></html>