[Gmsh] Interactive gmsh command line?

Christophe Geuzaine cgeuzaine at ulg.ac.be
Mon Oct 3 18:41:10 CEST 2016

Hi Todd,

Just put all the commands you want in a text file, and run Gmsh on it: either "gmsh file" to show the GUI, or "gmsh file -" to don't show the GUI.

If you really want an interactive command line like gnuplot, have a look at gmsh/utils/solvers/c++/interactive.cpp in the Gmsh source code: it's an example on how you can build such an interactive system by communicating with a Gmsh server process.


> On 3 Oct 2016, at 14:51, Todd Pierce <toddcpierce at gmail.com> wrote:
> Hi Crew, 
> I am completely new to gmsh.  I may have posted this question before, but this time I actually have gmsh installed so this time I am prepared.
> I was hoping to use gmsh as a "back end" to a program I am writing, similar to the way I utilize gnuplot.  What I do there is simply start gnuplot and hurl commands at it through a pipe and the graphic window magically opens up with results.
> Now, I know gmsh is a totally different animal.  However, if I could have a command line to work with and throw commands at it to define the 3D structure of something and perform meshing (among other things) this would open up many doors.  Of critical importance would be to see the output in a graphical window, since my program has no graphical capabilities.
> Does this make sense to anybody?  Has anybody done this?
> Thanks, 
> -Todd
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 

Free software: http://gmsh.info | http://getdp.info | http://onelab.info

More information about the gmsh mailing list