[Gmsh] Adaptation with python interface

Christophe Geuzaine cgeuzaine at ulg.ac.be
Thu Jan 31 16:41:19 CET 2013


Hi Martin - Not directly (as far as I know). I'll keep this in mind for our "clean Pyhton API" project.

Christophe

On 12 Dec 2012, at 16:10, Martin Vymazal <martin.vymazal at vki.ac.be> wrote:

> Dear gmsh developers,
>  
>  is there  a way to supply my own metric and then adapt the mesh with respect to this metric using the python interface of gmsh?
>  I know how to load a mesh into GModel and how to write it into an output file. I have a metric field produced by an external code (one metric tensor per mesh node). Is it possible to load this metric field (say in numpy array or similar)  and pass to gmsh ?
>  
> Thank you.
>  
> Best regards,
>  
>    Martin Vymazal
> _______________________________________________
> 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