-
Notifications
You must be signed in to change notification settings - Fork 164
/
Force2.mo
42 lines (40 loc) · 1.54 KB
/
Force2.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
33
34
35
36
37
38
39
40
41
42
within Modelica.Mechanics.Translational.Sources;
model Force2 "Input signal acting as torque on two flanges"
extends Translational.Interfaces.PartialTwoFlanges;
Modelica.Blocks.Interfaces.RealInput f(unit="N")
"Driving force as input signal" annotation (Placement(transformation(
extent={{-20,-20},{20,20}},
rotation=270,
origin={0,60}), iconTransformation(
extent={{-20,-20},{20,20}},
rotation=270,
origin={0,40})));
equation
flange_a.f = f;
flange_b.f = -f;
annotation (defaultComponentName="force",
Documentation(info="<html>
<p>
The input signal \"f\" in [N] characterizes an <em>external
force</em> which acts (with positive sign) at both flanges,
i.e., the components connected to these flanges are driven by force f.
</p>
<p>
Input signal s can be provided from one of the signal generator
blocks of Modelica.Blocks.Source.
</p>
</html>"),
Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},
{100,100}}), graphics={Text(
extent={{-150,-40},{150,-80}},
textString="%name",
textColor={0,0,255}),Polygon(
points={{90,0},{60,-30},{60,-10},{10,-10},{10,10},{60,10},{60,30},{90,0}},
lineColor={0,127,0},
fillColor={160,215,160},
fillPattern=FillPattern.Solid), Polygon(
points={{-90,0},{-60,30},{-60,10},{-10,10},{-10,-10},{-60,-10},{-60,-30},{-90,0}},
lineColor={0,127,0},
fillColor={160,215,160},
fillPattern=FillPattern.Solid)}));
end Force2;