Skip to content
Snippets Groups Projects
Commit acba966d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

put actual mesh sizes

parent c1e300a7
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,8 @@ SetFactory("OpenCASCADE");
// And let's build the same model as in t5.geo, but using constructive solid
// geometry:
Block(1) = {0,0,0, 1,1,1};
Block(2) = {0,0,0, 0.5,0.5,0.5};
Box(1) = {0,0,0, 1,1,1};
Box(2) = {0,0,0, 0.5,0.5,0.5};
BooleanDifference(3) = { Volume{1}; Delete; }{ Volume{2}; Delete; };
x = 0 ; y = 0.75 ; z = 0 ; r = 0.09 ;
For t In {1:5}
......@@ -26,9 +26,14 @@ For t In {1:5}
EndFor
v() = BooleanFragments{ Volume{3}; Delete; }{ Volume{3+1:3+5}; Delete; };
s() = Unique(Abs(Boundary{ Volume{v()}; }));
l() = Unique(Abs(Boundary{ Surface{s()}; }));
p() = Unique(Abs(Boundary{ Line{l()}; }));
Characteristic Length{p()} = 0.055;
lcar1 = .1;
lcar2 = .0005;
lcar3 = .055;
eps = 1e-3;
Characteristic Length{ PointsOf{ Volume{:}; } } = lcar1;
Characteristic Length{ PointsOf{ Volume{3+1:3+5}; } } = lcar3;
p() = Point In BoundingBox{0.5-eps,0.5-eps,0.5-eps,0.5+eps,0.5+eps,0.5+eps};
Characteristic Length{ p() } = lcar2;
// Additional examples are available in the demos/boolean directory.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment