SpeedSensor

model SpeedSensor "Ideal sensor to measure the absolute flange angular velocity"
    extends Rotational.Interfaces.PartialAbsoluteSensor;

    Modelica.Blocks.Interfaces.RealOutput w(unit = "rad/s") "Absolute angular velocity of flange as output signal"
        annotation (Placement(transformation(extent = {
            {100, -10}, 
            {120, 10}})));
equation
    w = der(flange.phi);

    annotation (
        Documentation(info = "<html>\n<p>\nMeasures the <strong>absolute angular velocity w</strong> of a flange in an ideal\nway and provides the result as output signal <strong>w</strong>\n(to be further processed with blocks of the Modelica.Blocks library).\n</p>\n</html>"),
        Icon(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Text(
                    extent = {
                        {70, -30}, 
                        {120, -70}},
                    textString = "w")}));
end SpeedSensor;