Professional Documents
Culture Documents
Introduction To Comsol Optional
Introduction To Comsol Optional
This section describes how to build a 2D cross section of a heat sink and introduces
2D geometry operations in COMSOL. At this time, you do not model the physics that
describe the operation of the heat sink.
Assume that you want to estimate the maximum amount of heat dissipated by a heat
sink placed around a resistor for high-power applications. The heat sink consists of an
extruded aluminum profile as in Figure 5-1. If you neglect the effects at the ends of
the elongated heat sink, you can simplify the model and obtain a decent estimate of
the heat dissipated by creating a 2D cross section.
218 | C H A P T E R 5 : G E O M E T R Y M O D E L I N G A N D C A D TO O L S
1 In the Model Builder, right-click Global Definitions ( ) and select Parameters ( ).
2 In the Parameters table, enter these settings:
A D D I N G TWO C I R C L E S W I T H P R E D E F I N E D P A R A M E T E R S
1 In the Model Builder, right-click Geometry 1 and select Circle ( ).
2 Under Size, enter R1 in the Radius field.
3 Click the Build Selected button ( ).
A circle with radius R1 displays in the Graphics window.
4 Right-click Geometry 1 and select Circle ( ).
5 Under Size, enter R2 in the Radius field.
6 Click the Build Selected button ( ).
A circle with radius R2 displays in the Graphics window. Click the Zoom Extents
button ( ) to see both circles.
The object dif1 is created by subtracting the smaller circle from the larger circle.
220 | C H A P T E R 5 : G E O M E T R Y M O D E L I N G A N D C A D TO O L S
7 Click the Build Selected button ( ) to create the object int1.
The object r2 (not related to the circle radius) is created. Next, round the sharp
edges of the flange by using fillets. Click the Zoom Extents button ( ).
222 | C H A P T E R 5 : G E O M E T R Y M O D E L I N G A N D C A D TO O L S
6 Repeat the above steps to create object rot3 and rot4. Use object rot2 to create rot3
and object rot3 to create rot4.
7 When done, click the Zoom Extents button ( ) to view the completed object.
224 | C H A P T E R 5 : G E O M E T R Y M O D E L I N G A N D C A D TO O L S
4 Click the Build All button ( ). Click the Zoom Extents button ( ) to view the
geometry as defined by the new parameters.
226 | C H A P T E R 5 : G E O M E T R Y M O D E L I N G A N D C A D TO O L S
U S I N G WO R K P L A N E S T O C RE A T E A B É Z I E R PO LY G O N
Use work planes to create 2D geometries, which you then extrude or revolve to create
3D objects.
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 y field.
8 Click Add Linear to add Segment 3 (linear) to the Added segments list.
a In row 2, enter -2e-3 in the x edit field.
b In row 2, enter 4e-3 in the y edit field.
9 Click Add Linear to add Segment 4 (linear) to the Added segments list.
10 Under Control points, in row 2, enter 0 in the y edit field.
11 Click Close Curve.
10
Note: The Revolution Axis corresponds to the position of the y-axis in the work
plane’s 2D coordinate system.
3 Under General, select the Keep input objects check box. Work Plane1 is required for
the next steps.
4 Click the Build Selected button ( ) and the Zoom Extents button ( ) to view the
object rev1.
11
228 | C H A P T E R 5 : G E O M E T R Y M O D E L I N G A N D C A D TO O L S
3 Click the Build Selected button ( ) and the Zoom Extents button ( )to view the
object ext1.
6 Click the Build Selected button ( ) and the Zoom Extents button ( ) to view the
object rot1.
12
13
230 | C H A P T E R 5 : G E O M E T R Y M O D E L I N G A N D C A D TO O L S
CREATING UNION 3
1 Right-click Geometry 1 and select Boolean Operations>Union.
The Union page opens in the Settings window.
2 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.
C RE AT I N G WO R K P L A N E 2 A N D A DD I N G A S Q U A RE
1 In the Model Builder, right-click Geometry 1 and select Work Plane.
The Work Plane page opens in the Settings window and a Work Plane 2 node is added
in the Model Builder.
2 Click the Build Selected button ( ).
3 To the right of the Settings window, click the Show Work Plane button ( ). Note
that you can 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 Geometry and select Square.
The Square page opens in the Settings window.
5 Under Size, enter 2.4e-2 in the Side length edit field.
6 Under Position:
a Select Center from the Base list.
b In the x edit field, enter 1e-2.
c In the y edit field, enter 1e-2.
7 Click the Build Selected button ( ) and the Zoom Extents button ( ).
14
15
232 | C H A P T E R 5 : G E O M E T R Y M O D E L I N G A N D C A D TO O L S
ADDING EXTRUDE 2 AND COMBINING OBJECTS TO COMPLETE THE BASE
1 In the Model Builder, right-click Geometry 1 and select Extrude ( ).
2 Under Distances from Work Plane, enter 4e-3 in the Distances row.
3 Click the Build Selected button ( ).
4 In the Model Builder, right-click Geometry 1 and select Boolean Operations>
Union ( ).
5 Select the objects uni3 and ext2 to add to the Input objects section under Union.
6 Click the Build Selected button ( ) to create object uni4. This completes the base
of the heat sink.
16
17
234 | C H A P T E R 5 : G E O M E T R Y M O D E L I N G A N D C A D TO O L S
ADDING ARRAYS
1 In the Model Builder, under Work Plane 3, right-click Geometry and select
Transforms>Array ( ).
2 Add the object sq1 to the Input objects section under Input.
3 Under Size:
a In the x edit field, enter 3.
b In the y edit field, enter 3.
4 Under Displacement:
a In the x edit field, enter 1e-2-L2/2.
b In the y edit field, enter 1e-2-L2/2.
In this case, 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.
19
236 | C H A P T E R 5 : G E O M E T R Y M O D E L I N G A N D C A D TO O L S