## Modelica.Mechanics.Translational.Sensors

Sensor for 1D translational mechanical quantities

Name | Description
--- | ---
ForceSensor | Ideal sensor to measure the force between two flanges
PositionSensor | Ideal sensor to measure the absolute position
SpeedSensor | Ideal sensor to measure the absolute velocity
AccSensor | Ideal sensor to measure the absolute acceleration

## Modelica.Mechanics.Translational.Sensors.PositionSensor

Ideal sensor to measure the absolute position

### Information

Measures the absolute position s 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).

Release Notes:

- First Version from August 26, 1999 by P. Beater

### Modelica definition

    model PositionSensor "Ideal sensor to measure the absolute position"
      extends Modelica.Icons.TranslationalSensor;

      SI.Position s "Absolute position of flange";

      Interfaces.Flange_a flange_a
        "(left) flange to be measured (flange axis directed INTO cut plane, e. g. from left to right)";
      Modelica.Blocks.Interfaces.OutPort outPort(
                                                 final n=1);
    equation
      s = flange_a.s;
      s = outPort.signal[1];
      0 = flange_a.f;
    end PositionSensor;

## Modelica.Mechanics.Translational.Sensors.ForceSensor

Ideal sensor to measure the force between two flanges

### Information

Measures the cut-force between two flanges in an ideal way and provides the result as output signal (to be further processed with blocks of the Modelica.Blocks library).

Release Notes:

- First Version from August 26, 1999 by P. Beater

### Modelica definition

    model ForceSensor
      "Ideal sensor to measure the force between two flanges"
      extends Interfaces.RelativeSensor;
      SI.Force f "force in flange_a and flange_b (f = flange_a.f = -flange_b.f)";
    equation
      flange_a.s = flange_b.s;
      flange_a.f = f;
      flange_b.f = -f;
      f = outPort.signal[1];
    end ForceSensor;

## Modelica.Mechanics.Translational.Sensors.SpeedSensor

Ideal sensor to measure the absolute velocity

### Information

Measures the absolute velocity v 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).

Release Notes:

- First Version from August 26, 1999 by P. Beater

### Modelica definition

    model SpeedSensor "Ideal sensor to measure the absolute velocity"
      extends Modelica.Icons.TranslationalSensor;
      SI.Position s "Absolute position of flange";
      SI.Velocity v "Absolute velocity of flange";

      Interfaces.Flange_a flange_a
        "(left) flange to be measured (flange axis directed INTO cut plane, e. g. from left to right)";
      Modelica.Blocks.Interfaces.OutPort outPort(
                                                 final n=1);
    equation
      s = flange_a.s;
      v = der(s);
      v = outPort.signal[1];
      0 = flange_a.f;
    end SpeedSensor;

## Modelica.Mechanics.Translational.Sensors.AccSensor

Ideal sensor to measure the absolute acceleration

### Information

Measures the absolute acceleration a 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).

Release Notes:

- First Version from August 26, 1999 by P. Beater

### Modelica definition

    model AccSensor "Ideal sensor to measure the absolute acceleration"
      extends Modelica.Icons.TranslationalSensor;
      SI.Velocity v "Absolute velocity of flange";
      SI.Acceleration a "Absolute acceleration of a flange";

      Interfaces.Flange_a flange_a
        "(left) flange to be measured (flange axis directed INTO cut plane, e. g. from left to right)";
      Modelica.Blocks.Interfaces.OutPort outPort(
                                                 final n=1);
    equation
      v = der(flange_a.s);
      a = der(v);
      a = outPort.signal[1];
      0 = flange_a.f;
    end AccSensor;