Matlab Chap 10
Matlab Chap 10
Contact Problems
MatlabFiles\Chap10\sideMap8Node.m
2
MatlabFiles\Chap10\contactSignedDistance.m
3
As a specific example consider calculation of contact point and gap between two cylinders shown in
Figure. The smaller cylinder has inner and outer radii of 35 mm and 50 mm respectively. The larger cylin-
der has inner and outer radii of 50 mm and 70 mm respectively. In the configuration shown, both cylinders
are resting on a horizontal surface. Segments of cylinders close to each other are modelled as shown in the
figure. With two sides curved, each segment involves six key points. For ease in implementation all sides
are defined by three key points as shown. The line 5 - 6 - 7 is the contactor and line 9 - 10 - 11 is the target.
4
9
40 16
15
7
T
8
C
1
20
6 14
2 10
0
3
4 13
-20 5
12
11
30 50 70
MatlabFiles\Chap10\GapEx101.m
5
>> GapEx101
Contactor point: (49.04, 9.755)
Closest target point: (60.58, 11.15)
Normal vector: (-0.9927, -0.1203)
dist =
11.6220
6
9
40 16
15
7
T
8
C
1
20
6 14
2 10
0
3
4 13
-20 5
12
11
30 50 70
MatlabFiles\Chap10\PenetrationEx102.m
7
>> PenetrationEx102
Contactor point: (49.04, 9.755)
Closest target point: (40.97, 8.424)
Normal vector: (-0.9867, -0.1627)
dist =
-8.1814
MatlabFiles\Chap10\PenaltyContactElement.m
8
9
40 16
15
7
8 T
1C
20
6 14
2 10
0
3 13
-20 4
5
12
11
30 50 70
MatlabFiles\Chap10\PenaltyContactEx103.m
>> PenaltyContactEx103
k=
Columns 1 through 6
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
Columns 7 through 12
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 7.6728 -1.8188 4.0310 -1.3791
0 0 -1.8188 0.5120 -1.3791 0.0614
0 0 4.0310 -1.3791 28.0892 5.3909
0 0 -1.3791 0.0614 5.3909 2.0594
0 0 -1.6263 -0.2499 2.4744 2.3786
0 0 -0.2499 -0.4199 2.3786 1.6180
0 0 0 0 0 0
0 0 0 0 0 0
Columns 13 through 16
0 0 0 0
0 0 0 0
11
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
-1.6263 -0.2499 0 0
-0.2499 -0.4199 0 0
2.4744 2.3786 0 0
2.3786 1.6180 0 0
5.3380 3.8178 0 0
3.8178 2.8468 0 0
0 0 0 0
0 0 0 0