[Gmsh] script for creating transfinite surfaces and volumes

Fabian f.braennstroem at gmx.de
Sun Aug 3 16:19:19 CEST 2008


Hi,

creating hexa grids with 'transfinite' works quite nice, though I am 
kind of defining the existing surfaces twice; once of the geometry and 
the same a second time for 'transfinite'. Is there an option to create 
the 'transfinite' surfaces and volumes automatically? Or maybe anyone 
has some kind of e.g. sed script, which does this; e.g.:

Line Loop(5) = {3,4,1,2};
Plane Surface(6) = {5};

Look for all surfaces and the corresponding line loop to create:

Transfinite Surface {6} = {3,4,1,2};

Would be nice, if this could work!?

Regards!
Fabian