-
Notifications
You must be signed in to change notification settings - Fork 164
/
Rod.mo
32 lines (31 loc) · 1.3 KB
/
Rod.mo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
within Modelica.Mechanics.Translational.Components;
model Rod "Rod without inertia"
extends Translational.Interfaces.PartialRigid;
equation
0 = flange_a.f + flange_b.f;
annotation (
Documentation(info="<html>
<p>
A translational rod <strong>without inertia</strong> and two rigidly connected flanges.
</p>
</html>"),
Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{
100,100}}), graphics={Line(points={{-100,0},{100,0}}, color={0,127,0}),
Polygon(
points={{50,-90},{20,-80},{20,-100},{50,-90}},
lineColor={95,127,95},
fillColor={95,127,95},
fillPattern=FillPattern.Solid), Line(points={{-60,-90},{20,-90}}, color={95,127,95}),
Rectangle(
extent={{-60,10},{60,-10}},
lineColor={0,127,0},
fillColor={160,215,160},
fillPattern=FillPattern.Solid), Text(
extent={{-150,80},{150,40}},
textString="%name",
textColor={0,0,255}),Text(
extent={{-150,-30},{150,-60}},
textString="L=%L")}),
Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},
{100,100}})));
end Rod;