[Gmsh] cylinder in a box
Miro Kuchta
miroslav.kuchta at gmail.com
Sat Mar 24 21:15:23 CET 2018
Hi,
I would like to mesh a box and a cylinder such that the mesh conforms
to the interface. With the attached script I get several (22) duplicate
vertices
in the mesh. If the cylinder is shorter such that it is entirely
contained in the
box then there are no duplicate vertices.
Could you point me to the correct way of doing this?
Thanks, Miro
-------------- next part --------------
SetFactory("OpenCASCADE");
Cylinder(1) = {0, 0, 0, 0, 0, 1, 0.2};
Box(2) = {-1, -1, 0, 2, 2, 1};
outside() = BooleanDifference {Volume{2}; Delete; }{Volume{1}; };
Physical Volume(1) = {1};
Physical Volume(2) = {outside[]};
More information about the gmsh
mailing list