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:

----
SetFactory("OpenCASCADE");
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,
Adam
_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to