<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>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>