Dear All,
I need to make a model of a circulator, in order to do this I need to be
able to mesh nested volumes,
unfortunatly I do not succeed in this.
I've attached a simplified file to illustrate the problem:
there is a big cube with a small one inside, and now I want to mesh these.
When you 3D-mesh the attached file, only the inner cube gets meshed.
When the innercube is not translated to the middle, I get the error
about intersecting volumes,
however, in my actual model, I will need to do this.
Please note that the use of the extrusion function is vital for my
actual problem (where the shapes are more complicated)
So I have the following 2 questions:
1) What has to be done to mesh both cubes in the attached file?
2) What has to be done to mesh both cubes in the attached file, IF the
middle cube touches the outer cube with one , two or three facets?
Thanks in advance!
Steven Vandekerckhove
lc = 0.2;
x1 = 0;
y1 = 0;
x2 = 4;
y2 = 4;
x3 = 1;
y3 = 1;
x4 = 3;
y4 = 3;
Point(1) = {x1, y1, 0, lc};
Point(2) = {x1, y2, 0, lc};
Point(3) = {x2, y2, 0, lc};
Point(4) = {x2, y1, 0, lc};
Point(5) = {x3, y3, 0, lc};
Point(6) = {x3, y4, 0, lc};
Point(7) = {x4, y4, 0, lc};
Point(8) = {x4, y3, 0, lc};
Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 4};
Line(4) = {4, 1};
Line Loop(1) = {1,2,3,4};
Line(5) = {5, 6};
Line(6) = {6, 7};
Line(7) = {7, 8};
Line(8) = {8, 5};
Line Loop(2) = {5, 6, 7, 8};
Plane Surface(1) = {1}; // Big one
Plane Surface(2) = {2}; // small one
// extrusion of inner box
middle[] = Extrude {0,0,2} {
Surface{2};
};
// shift the middle box to the middle of the bog cube
Translate{0, 0, 1} {Volume{middle[1]};}
// extrusion of outer box
outer[] = Extrude {0,0,4} {
Surface{1};
};
Compound Surface(101) = {outer[1], -middle[1]};
Coherence;
_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh