Geometry Modeling and CAD Tools > Geometry Modeling Examples > Creating a 3D Geometry Model

Creating a 3D Geometry Model
Figure 7-11 shows the geometry of a heat sink used for cooling microprocessors. The following sections describe the steps to create this geometry and introduces 3D drawing tools and techniques.
See Toolbars and Keyboard Shortcuts for links and information about all the available toolbars. Also see The COMSOL Desktop Menus and Toolbars.
Figure 7-11: Example of a 3D heat sink geometry.
Creating a Basic 3D Geometry Component
1
2
Add a 3D Component, either when Creating a New Model or adding The Component Node.
Creating Parameters for Geometry Parameterization
1
On the Home toolbar click Parameters ().
2
On the Settings window, in the Parameters table, enter these settings:
Using Work Planes to Create a Bézier Polygon
Use work planes to create 2D geometries that you can extrude or revolve to create 3D objects.
Creating a Bézier Polygon
1
On the Geometry toolbar click Work Plane ().
2
On the Settings window for Work Plane under Plane Definition, select xz-plane from the Plane list.
3
Under the Work Plane 1 node, right-click Plane Geometry and add a Bézier Polygon () (or click Plane Geometry and on the Work Plane toolbar from the Primitives menu, select Bézier Polygon).
4
On the Settings window for Bézier Polygon under Polygon Segments, click Add Linear.
Segment 1 (linear) displays in the Added segments list.
5
Under Control points: In row 1, enter -2e-3 in the xw field, and in row 2, enter4e-3 in the xw field.
6
Click Add Linear to add Segment 2 (linear) to the Added segments list. Some of the Control points are automatically filled in with values; the control points from the previous line are already filled in as the starting points for the next line.
7
Under Control points, in row 2, enter 2e-3 in the yw field.
8
Click Add Linear to add Segment 3 (linear) to the Added segments list.
9
In the xw field for row 2, enter -2e-3. In the yw field for row 2, enter 4e-3.
10
Click Add Linear to add Segment 4 (linear) to the Added segments list.
11
Under Control points in the yw field for row 2, enter 0.
12
Click Close Curve, then click the Build Selected button () and the Zoom Extents button ().
Revolving a 2D Object to Create a 3D Object
1
Click the Geometry 1 node. On the Geometry toolbar, click Revolve ().
The Settings window for Revolve opens and the 2D Bézier Polygon displays in the Graphics window.
2
On the Settings window for Revolve under Revolution Angles, enter 90 in the End angle field (replace the default).
The Revolution Axis corresponds to the position of the y-axis in the work plane’s 2D coordinate system.
3
Under General, click to clear the Unite with input objects check box. Work Plane 1 is required for the next steps.
4
Click the Build Selected button () and the Zoom Extents button () to view the object rev1.
Adding an Extrusion and Union
1
On the Geometry toolbar, click Extrude ().
2
On the Settings window, under Distances from Plane, enter -2e-2 in the Distances row.
3
Click the Build Selected button () and the Zoom Extents button ()to view the object ext1.
4
On the Geometry toolbar, from the Booleans and Partitions menu, select Union ().
5
In the Graphics window click to select the objects rev1 and ext1 and add them to the Input objects section.
6
On the Settings window under Union, click to clear the Keep interior boundaries check box to remove the interior boundary between the corner section and the edge section.
7
Click the Build Selected button (). Objects rev1 and ext1 are combined to create object uni1.
Adding a Rotation to the 3D Object
1
Click Geometry 1 and on the Geometry toolbar, from the Transforms menu, select Rotate ().
2
Select the object uni1 and add it to the Input objects section under Input.
3
Select the Keep input objects check box to leave the input object intact as a rotation of the object is created.
4
Under Rotation Angle, enter -90 in the Rotation field.
5
Under Point on Axis of Rotation: In the x field, enter 1e-2, and in the y field, enter 1e-2.
6
Click the Build Selected button () and the Zoom Extents button () to view the object rot1.
Creating Union 2
1
On the Geometry toolbar, from the Booleans and Partitions menu, select Union ().
2
In the Graphics window click to select the objects uni1 and rot1 and add them to the Input objects section under Union.
3
Click to clear the Keep interior boundaries check box.
4
Click the Build Selected button () to create object uni2.
Adding a Second Rotation
1
On the Geometry toolbar, from the Transforms menu, select Rotate ().
2
In the Graphics window click to select the object uni2 and add it to the Input objects section under Input.
3
On the Settings window for Rotate click to select the Keep input objects check box.
4
Under Rotation Angle, enter -180 in the Rotation field.
5
Under Point on Axis of Rotation: In the x field, enter 1e-2, and in the y field, enter 1e-2.
6
Click the Build Selected button ().
Creating Union 3
1
On the Geometry toolbar, from the Booleans and Partitions menu, select Union ().
2
In the Graphics window click to select the objects uni2 and rot2 and add them to the Input objects section under Union.
3
Click to clear the Keep interior boundaries check box.
4
Click the Build Selected button () to create object uni3.
Creating Work Plane 2 and Adding a Square
1
On the Geometry toolbar, click Work Plane (). A Work Plane 2 node is added to the Model Builder.
2
Click the Build Selected button ().
3
On the Settings window for Work Plane 2 in the upper-left corner, click the Show Work Plane button (). Use the projection of the 3D geometry on the xy-plane as a guide for creating the middle section of the heat sink base.
4
In the Model Builder, under Work Plane 2, right-click Plane Geometry and select Square ().
5
On the Settings window for Square under Size, enter 2.4e-2 in the Side length field.
6
Under Position, select Center from the Base list. Then in the xw field, enter 1e-2, and in the yw field, enter 1e-2.
7
Click the Build Selected button () and the Zoom Extents button ().
Trimming the Square to Fit Using the Fillet Operation
1
Under Work Plane 2, click the Plane Geometry node.
2
3
In the Graphics window click to add points 1, 2, 3, and 4 on the object sq1 to the Vertices to fillet section under Points.
4
Under Radius, enter 2e-3 in the Radius field.
5
Click the Build Selected button.().
Adding Extrude 2 and Combining Objects to Complete the Base
1
Click the Geometry 1 node. Then on the Geometry toolbar click Extrude ().
2
On the Settings window for Extrude under Distances from Plane, enter 4e-3 in the Distances row.
3
Click the Build Selected button ().
4
On the Geometry toolbar, from the Booleans and Partitions menu, select Union ().
5
On the Graphics window click to select the objects uni3 and ext2 to add to the Input objects section.
6
Click the Build Selected button () to create object uni4. This completes the base of the heat sink.
Drawing the Upper Part of the Heat Sink
Creating a Work Plane and a Square
1
On the Geometry toolbar click Work Plane (). A Work Plane 3 node is added to the Model Builder.
2
On the Settings window, under Plane Definition, enter 4e-3 in the z-coordinate field.
3
Click the Plane Geometry node under Work Plane 3. In the Settings window, the check boxes Coincident entities, Intersection, and Projection are selected by default. This visualizes the projected edges of the heat sink’s base in the work plane.
4
On the Settings window for Work Plane click the Build Selected button ().
5
On the Settings window click the Show Work Plane button ().
6
In the Model Builder, under Work Plane 3, right-click Plane Geometry and select Square ().
7
Under Size, enter L2 in the Side length field.
8
Click the Build Selected button () to create square sq1 with side length L2.
Adding an Array of Pillars
1
Under Work Plane 3 click Plane Geometry. On the Work Plane toolbar, from the Transforms menu, select Array ().
2
Add the object sq1 to the Input objects section under Input.
3
Under Size, in the xw size field, enter 3, and in the yw size field, enter 3.
4
Under Displacement, in the xw field, enter 1e-2-L2/2, and in the yw field, enter 1e-2-L2/2.
5
Click the Build Selected button ().
Adding Extrude 3 and Combining Objects (Union)
1
Click the Geometry 1 node. Then on the Geometry toolbar click Extrude ().
2
On the Settings window for Extrude under Distances from Plane, enter L1 in the Distances row.
3
Click the Build Selected button () and the Zoom Extents button ().
4
On the Geometry toolbar, from the Booleans and Partitions menu, select Union ().
5
On the Graphics toolbar click the Select All button () to add all the objects (uni4 and all the ext3 just built) to the Input objects list under Union.
6
Click the Build All Objects button () to complete the heat sink geometry as in Figure 7-11.
The upper part of the heat sink is parameterized through the thickness and height of the heat sink pillars. You can edit the parameter values defined previously to change the heat sink geometry.
Re-running the Geometry Sequence with Different Parameters
1
On the Home toolbar click Parameters ().
2
On the Settings window under Parameters enter the following settings in the table. Replace the previous data:
3
In the Model Builder, click Geometry 1.
4
Click the Build All button () and the Zoom Extents button () to view the geometry as defined by the new parameters.