1
1
within Modelica.Mechanics.Translational.Components;
2
- model IdealLever "Ideal lever without mass"
2
+ model IdealGear "Ideal gear without mass"
3
3
extends Modelica.Mechanics.Translational.Interfaces.PartialElementaryTwoFlangesAndSupport2;
4
4
parameter Real ratio(start= 1 )
5
5
"Transmission ratio (flange_a.s/flange_b.s)" ;
@@ -51,45 +51,31 @@ to <var>i</var> only when <code>flange_a</code> is the driving flange.
51
51
Icon(
52
52
coordinateSystem(preserveAspectRatio=true,
53
53
extent={{-100,-100},{100,100}}),
54
- graphics={
55
- Polygon(
56
- points={{-6,-30},{-6,50},{0,50},{6,50},{6,-30},{-6,-30}},
57
- lineColor={0,0,0},
58
- fillColor={160,215,160},
59
- fillPattern=FillPattern.Solid),
54
+ graphics={ Line(points={{70,0},{100,0}}, color={0,127,0}),
55
+ Line(points={{-100,0},{-70,0}},color={0,127,0}),
60
56
Ellipse(
61
- extent={{-20,-10 },{20,-50 }},
62
- fillColor={160,215,160 },
57
+ extent={{-38,38 },{38,-38 }},
58
+ fillColor={255,255,255 },
63
59
fillPattern=FillPattern.Solid,
64
- pattern=LinePattern.None),
65
- Ellipse(
66
- extent={{-20,-10},{20,-50}},
67
- startAngle=-73,
68
- endAngle=253,
69
- closure=EllipseClosure.None),
60
+ lineColor={95,95,95}),
70
61
Ellipse(
71
- extent={{-10,-20},{10,-40}},
72
- fillColor={175,190,175},
62
+ extent={{-16,16},{16,-16}},
63
+ fillColor={255,255,255},
64
+ fillPattern=FillPattern.Solid,
65
+ lineColor={95,95,95}),
66
+ Polygon(
67
+ points={{76,-10},{76,0},{76,24},{-42,24},{-42,16},{56,16},{66,-10},{76,-10}},
68
+ lineColor={0,127,0},
69
+ fillColor={160,215,160},
73
70
fillPattern=FillPattern.Solid),
74
71
Line(
75
- points={{0,-54},{0,-30 }},
72
+ points={{0,-54},{0,0 }},
76
73
color={0,127,0}),
77
74
Line(
78
75
points={{0,-100},{0,-78}},
79
76
color={0,127,0}),
80
- Line(
81
- points={{-98,0},{0,50}},
82
- color={0,127,0}),
83
- Line(
84
- points={{0,20},{100,0}},
85
- color={0,127,0}),
86
- Ellipse(
87
- extent={{-4,54},{4,46}},
88
- lineColor={0,127,0},
89
- fillColor={160,215,160},
90
- fillPattern=FillPattern.Solid),
91
77
Ellipse(
92
- extent={{-4,24 },{4,16 }},
78
+ extent={{-4,4 },{4,-4 }},
93
79
lineColor={0,127,0},
94
80
fillColor={160,215,160},
95
81
fillPattern=FillPattern.Solid),
@@ -99,5 +85,10 @@ to <var>i</var> only when <code>flange_a</code> is the driving flange.
99
85
textString="%name" ),
100
86
Text(
101
87
extent={{-100,-50},{100,-80}},
102
- textString="ratio=%ratio" )}));
103
- end IdealLever;
88
+ textString="ratio=%ratio" ),
89
+ Polygon(
90
+ points={{50,48},{50,38},{-52,38},{-66,-10},{-76,-10},{-76,48},{50,48}},
91
+ lineColor={95,95,95},
92
+ fillColor={131,175,131},
93
+ fillPattern=FillPattern.Solid)}));
94
+ end IdealGear;
0 commit comments