[Gmsh] Meshing on command line
toddcpierce at gmail.com
Fri Feb 10 18:31:11 CET 2017
I may sound like an idiot, but at least I'm less of an idiot than I was a
I have gotten a grip of defining geometries using the interactive(.cpp)
interface. At this stage there are a couple of weird things.
Loading a file seems to happen with the "Include" command. I'm OK with
that, but is there an "Open" command?
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.
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.
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.
The way I'd like things to work is as such:
gmsh> open a file
gmsh> type some command to mesh the geometry and have it immediately
or, if that's not possible,
gmsh> open a file
gmsh> type some command to generate the mesh file
gmsh> type a command to clear *everything* so that displaying the mesh
gmsh> type a command to open the mesh file
And yes, I know I'm getting ahead of myself. Any ideas are helpful.
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gmsh