I'd be very much interested in a hands-on example of Gmsh + Python as well.
--Nico On Thu, Jul 11, 2013 at 10:06 AM, Christophe Geuzaine <[email protected]>wrote: > > On 11 Jul 2013, at 09:07, moritz braun <[email protected]> wrote: > > > Dear All > > > > I am using gmsh in the moment to > > create 3D grids with background field to control the characteristic > length. > > Writing functions as .F attribute of an Field variable is rather > restrictive > > it would be nice if gmsh could be extended by embedding the python > interpreter for > > such functions. > > How difficult whould that be? > > > > I think you can already define fields in the Gmsh Python interface (CC'ing > Jon on this one: Jon, could you send a small example?). If this is the > case, then your python script could simply import the Gmsh module, merge > your current .geo definitions, then define the fields directly in Python. > > > > regards > > > > Moritz > > > > -- > > Prof M Braun Tel.:27-12-4298006/8027 > > Physics Department Fax.: 27-12-4293643 > > University of South Africa (UNISA) > > [email protected] > > P.O. Box 392 > > 0003 > > UNISA > > South Africa > > http://moritz-braun.blogspot.com > > _______________________________________________ > > gmsh mailing list > > [email protected] > > 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 > > > > > _______________________________________________ > gmsh mailing list > [email protected] > http://www.geuz.org/mailman/listinfo/gmsh >
_______________________________________________ gmsh mailing list [email protected] http://www.geuz.org/mailman/listinfo/gmsh
