[Gmsh] Control mesh size through API

Bin Wen dracifer at gmail.com
Tue Dec 9 23:19:39 CET 2014


Hi guys,

I am working on using Gmsh as a library to generate meshes. The element
size I am getting is too small. I would like to find a good way to control
the element size (fine mesh on the zigzag boundary and coarse in the middle
of the domain,), and find that providing a field may be a solution.
However, I had hard time to find examples of how to set field through Gmsh
API. I am wondering if you have any suggestion or examples that could be
used as reference.

A good example could be the API version of tutorial t.10 on Gmsh
documentation (http://geuz.org/gmsh/doc/texinfo/gmsh.html#t10_002egeo).

Many thanks!
Bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20141209/77163070/attachment.html>