Trying to create a 3D solid mesh structure which has a solid particle inside it. I want the box and the sphere both have non-overlapped mesh structure. But the BOX’s mesh is also going inside the sphere’s mesh. Trying to delete the volume of sphere from the box, and then generating 3D mesh for both. But its not working? Any suggestions?
SetFactory(“OpenCASCADE”);
Box(1) = {0, 0, 0, 1, 1, 1};
Sphere(2) = {.5, 0.5, 0.5, 0.2, -Pi, Pi, 2*Pi};
BooleanDifference(3) = { Volume{1}; Delete; }{ Volume{2}; Delete; };
Volume(5) = {3};
Physical Volume(“Particle”) = {5};
Physical Volume(“Matrix”) = {2};
I tried with Gmsh GUI with different Boolean operations. Not working as expected.
Shishir Barai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.