[Gmsh] command line

Christophe Geuzaine cgeuzaine at ulg.ac.be
Tue Feb 10 12:08:10 CET 2009


José Francisco López Marín wrote:
> Hello. First of all, congratulatios. GMSH is a a very nice tool.
> 
> My question is: has GMSH a command line in interactive mode to see the 
> effect of comands inmediatly? Something like Autocad, Ansys, etc.

Yes, although not built-in. An example of a interactive shell is 
available in the source distribution in

   utils/solvers/c++/interactive.cpp

To use this shell you must launch Gmsh with the "Always listen to 
incoming connection requests" option turned on (in 
Tools->Options->Solver). Then, while Gmsh is running, you simply connect 
to the shell by specifying the socket name, e.g.:

   interactive.exe localhost:44122

You can then execute any command interactively as if it was in a script.

(It should be quite easy to write a similar interactive shell in Python 
or Perl. If you do we'll add it in the distribution.)



> 
> Thanks in advance.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine