[Gmsh] Does gmsh script support custom functions?

G. D. McBain gdmcbain at protonmail.com
Thu Jun 27 08:04:12 CEST 2019

> Does gmsh script support custom functions? I cannot find any guides to writing custom functions in gmsh manual

Not really, no.  There is 'Macro' (which I think used to be called 'Function'), but no.


But there is the Gmsh API which can be used instead of writing a GEO file


Before that came along, the best approach was generating the GEO file in an external script, e.g. Python.  A formalization of this which I still use myself is pygmsh.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20190627/cb91b6b6/attachment.html>

More information about the gmsh mailing list