Creating Intrusions through Layered Extrusion
COMSOL has a very user-friendly interface for taking objects from 2D to 3D using the "extrusion" feature. But suppose you want to design an object which contains screw holes or some other indentation. One method would be to use the usual "Boolean Difference" function. However, this method leaves you with many new undefined object faces, which may force you to redefine a bunch of new work planes -- needless to say, a potentially messy strategy. Instead, I've found that a Layered-Extrusion method to Intrusions is a much safer and user-friendly method, especially because it forces the designer to systematically update the object with appropriate work planes. The result is an orderly, easy-to-modify object.
This layered method is best described through example:
1) First, create the planar projection in a work plane:
2) Extrude the first layer only in the regular fashion:
3) Add a new work plane which is offset in the z-direction to the deepest point of the intrusion.
4) Now, create the shape of the intrusion in this new work plane.
5) Use the Boolean "Difference" to let COMSOL know that, on this plane, the object has a hole:
6) Extrude once more from the second work plane to complete the intrusion:




