[Gmsh] Non-uniform mesh in a multi-STL geometry

Einat Lev einatlev at ldeo.columbia.edu
Tue Dec 25 04:19:06 CET 2012


Hello all
I have a GEO file which merges two STL surfaces, which together create a single-surface closed volume.(following the helpful advice given in http://geuz.org/pipermail/gmsh/2010/005275.html)
gMsh has no problem making a 3D volume mesh for the combined surface.

What I'm trying to do now is to have the volume mesh fine near one surface (the outer shell of the volume) and coarser in the interior.
I followed instructions for using an Attractor field and a Threshold field and then a resulting field that takes the minimum. This strategy have worked for me before for simple surfaces created inside gMsh (e.g. a pipe, a box -- see attached picture). But now when I am trying it for the STL model, I get errors saying that:
Error   : Cannot interpolate discrete surface

Is there any other way to do this sort of refinement?

All the best,
Einat 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: EtnaFlow6.geo
Type: application/octet-stream
Size: 1166 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20121224/5c03c451/attachment.geo>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toponly_matlab.stl
Type: application/octet-stream
Size: 300895 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20121224/5c03c451/attachment.stl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bottomonly_matlab.stl
Type: application/octet-stream
Size: 281170 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20121224/5c03c451/attachment-0001.stl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RefiniementExample.tiff
Type: image/tiff
Size: 563300 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20121224/5c03c451/attachment.tiff>
-------------- next part --------------