-
Notifications
You must be signed in to change notification settings - Fork 164
/
AccSensor.mo
28 lines (26 loc) · 950 Bytes
/
AccSensor.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
within Modelica.Mechanics.Translational.Sensors;
model AccSensor "Ideal sensor to measure the absolute acceleration"
extends Translational.Interfaces.PartialAbsoluteSensor;
SI.Velocity v "Absolute velocity of flange";
Modelica.Blocks.Interfaces.RealOutput a(unit="m/s2")
"Absolute acceleration of flange as output signal" annotation (
Placement(transformation(extent={{100,-10},{120,10}})));
equation
v = der(flange.s);
a = der(v);
annotation (
Documentation(info="<html>
<p>
Measures the <em>absolute acceleration a</em>
of a flange in an ideal way and provides the result as
output signals (to be further processed with blocks of the
Modelica.Blocks library).
</p>
</html>"),
Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},
{100,100}}), graphics={
Text(
extent={{-24,20},{66,-40}},
textColor={64,64,64},
textString="m/s2")}));
end AccSensor;