[Gmsh] Meshing on command line
fa_201 at yahoo.fr
Fri Feb 10 22:46:01 CET 2017
looking at the documentation you will find useful command. You may have a look at the following :delete model; I add it at the beginning of every geo file
merge file.geo;You can set environment settings in the geo file also (mesh size, mesh algorithm, visibility of node etc...).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.
De : Todd Pierce <toddcpierce at gmail.com>
À : gmsh at onelab.info
Envoyé le : Vendredi 10 février 2017 18h31
Objet : [Gmsh] Meshing on command line
I may sound like an idiot, but at least I'm less of an idiot than I was a week ago.
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 visible.
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 works.
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.
gmsh mailing list
gmsh at onelab.info
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gmsh