forked from modelica/ModelicaStandardLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TorqueSensor.mo
35 lines (33 loc) · 1.13 KB
/
TorqueSensor.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
within Modelica.Mechanics.Rotational.Sensors;
model TorqueSensor
"Ideal sensor to measure the torque between two flanges"
extends Rotational.Interfaces.PartialRelativeSensor;
Modelica.Blocks.Interfaces.RealOutput tau(unit="N.m")
"Torque in flange flange_a and flange_b (tau = flange_a.tau = -flange_b.tau) as output signal"
annotation (Placement(transformation(
origin={-80,-110},
extent={{10,-10},{-10,10}},
rotation=90)));
equation
flange_a.phi = flange_b.phi;
flange_a.tau = tau;
annotation (
Documentation(info="<html>
<p>
Measures the <em>cut-torque</em> between two flanges
in an ideal way and provides the result as output signal <code>tau</code>
(to be further processed with blocks of the
<a href=\"modelica://Modelica.Blocks\">Modelica.Blocks</a> library).
</p>
</html>"),
Icon(
coordinateSystem(preserveAspectRatio=true,
extent={{-100.0,-100.0},{100.0,100.0}}),
graphics={
Line(points={{-80.0,-100.0},{-80.0,0.0}},
color={0,0,127}),
Text(
extent={{-50,-14},{50,-54}},
textColor={64,64,64},
textString="N.m")}));
end TorqueSensor;