---
url: /dyad/stable/stdlib/RotationalComponents/components/Sensors.VelocitySensor.md
description: >-
  Dyad Sensors.VelocitySensor docs.  Measures the ideal absolute angular
  velocity of a rotational mechanical flange.
---

# `Sensors.VelocitySensor` {#Sensors.VelocitySensor}

Measures the ideal absolute angular velocity of a rotational mechanical flange.

This sensor provides an ideal measurement of the absolute angular velocity of a connected rotational flange. It computes the angular velocity by taking the time derivative of the absolute angular position, $\text{spline}.\phi$, of the flange. The angular position $\text{spline}.\phi$ is accessed via a `spline` connector. The defining equation for the output angular velocity $w$ is:

$$w = \frac{d(\phi\_{spline})}{dt}$$

This component extends from [`RotationalComponents.Interfaces.PartialAbsoluteSensor`](../types/Interfaces.PartialAbsoluteSensor.md)

## Usage {#Usage}

`RotationalComponents.Sensors.VelocitySensor()`

## Connectors {#Connectors}

* `spline` - This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. ([`Spline`](/stdlib/Dyad/connectors/Spline#Spline))

* `w` - This connector represents a real signal as an output from a component ([`RealOutput`](/stdlib/Dyad/connectors/RealOutput#RealOutput))

## Behavior {#Behavior}

$$ \begin{align}
0 &= \mathtt{spline.tau}\left( t \right) \\
w\left( t \right) &= \frac{\mathrm{d}\mathtt{spline.phi}\left( t \right)}{\mathrm{d}t}
\end{align}
$$

## Source {#Source}

````dyad
"""
Measures the ideal absolute angular velocity of a rotational mechanical flange.

This sensor provides an ideal measurement of the absolute angular velocity of a
connected rotational flange. It computes the angular velocity by taking the time
derivative of the absolute angular position, \$\text{spline}.\\phi\$, of the
flange. The angular position \$\text{spline}.\\phi\$ is accessed via a
`spline` connector. The defining equation for the output angular
velocity \$w\$ is:
```math
w = \frac{d(\\phi_{spline})}{dt}
```
"""
component VelocitySensor
  extends RotationalComponents.Interfaces.PartialAbsoluteSensor
  "Absolute angular velocity of flange as output signal"
  w = RealOutput() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
relations
  w = der(spline.phi)
metadata {
  "Dyad": {
    "icons": {"default": "dyad://RotationalComponents/SingleSplineSensor.svg"},
    "labels": [{"label": "$(instance)", "layer": "icon", "x": 500, "y": 1008, "rot": 0}]
  }
}
end
````

````dyad
"""
Measures the ideal absolute angular velocity of a rotational mechanical flange.

This sensor provides an ideal measurement of the absolute angular velocity of a
connected rotational flange. It computes the angular velocity by taking the time
derivative of the absolute angular position, \$\text{spline}.\\phi\$, of the
flange. The angular position \$\text{spline}.\\phi\$ is accessed via a
`spline` connector. The defining equation for the output angular
velocity \$w\$ is:
```math
w = \frac{d(\\phi_{spline})}{dt}
```
"""
component VelocitySensor
  "Spline of the shaft from which sensor information shall be measured"
  spline = Spline() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
  "Absolute angular velocity of flange as output signal"
  w = RealOutput() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
relations
  0 = spline.tau
  w = der(spline.phi)
metadata {
  "Dyad": {
    "icons": {"default": "dyad://RotationalComponents/SingleSplineSensor.svg"},
    "labels": [{"label": "$(instance)", "layer": "icon", "x": 500, "y": 1008, "rot": 0}]
  }
}
end
````

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses
