[Gmsh] python and gmsh

Magnus Hagdorn Magnus.Hagdorn at OHMsurveys.com
Tue Mar 20 15:59:32 CET 2007


On Tue, 2007-03-20 at 14:51 +0000, Daniel Wheeler wrote:
> 
> Hi,
> 
> 
> I was wondering if anyone had thought about exposing some of the gmsh
> functionality
> to python. We develop a finite volume code in python
> <http://www.ctcms.nist.gov/fipy> and
> use gmsh externally to create meshes and then read them in. It would
> be desirable to have closer
> coupling with gmsh from within python, especially for adaptive meshing
> and multigrid solutions.
> I am not sure if this is even a good idea or a project worth
> undertaking, but I'd like to hear peoples
> thoughts on the matter.
> 
I have written some code which will start gmsh in a second thread from
python. The only thing python does is monitor the progress of gmsh.
After it finishes you can read the generated mesh file.
Cheers
magnus