[Gmsh] openCASCADE local element sizes

Adam Connolly ajcc103 at gmail.com
Thu Sep 28 15:17:13 CEST 2017

Dear all,

I'm trying to use gmsh's CSG functionality to create a simple mesh (box
with spherical hole in it), but I would like to locally change the
edge-length around the spherical surface, and have the rest of the mesh
smoothly change in size away from this surface. Does anyone know how to
make this work?

Example code:

Mesh.CharacteristicLengthMin = 0.2;
Mesh.CharacteristicLengthMax = 0.2;
v0 = newv;
Sphere(v0) = {0.0, 0.0, 0.0, 0.5}; //How can I make the edge-lengths on the
sphere surface different from 0.2?
v1 = newv;
Box(v1) = {-1, -1, -1, 2, 2, 2};
bo1[] = BooleanDifference{Volume {v1}; Delete;} {Volume {v0}; Delete;};

Many thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20170928/3ed53093/attachment.html>

More information about the gmsh mailing list