VelocitySensorVelocitySensor Icon

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 PartialAbsoluteSensor

Usage

RotationalComponents.VelocitySensor()

Connectors

  • spline - This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. (Spline)
  • w - This connector represents a real signal as an output from a component (RealOutput)

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

"""
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}

"""</span>
<span class="hljs-keyword">component</span> VelocitySensor
&nbsp;&nbsp;<span class="hljs-keyword">extends</span> <span class="hljs-link"><a href="https://help.juliahub.com/dyad/dev/stdlib/RotationalComponents/types/PartialAbsoluteSensor.html">PartialAbsoluteSensor</a></span>
&nbsp;&nbsp;<span class="hljs-comment">"Absolute angular velocity of flange as output signal"</span>
&nbsp;&nbsp;<span class="hljs-symbol">w</span> = <span class="hljs-link"><a href="https://help.juliahub.com/dyad/dev/stdlib/Dyad/connectors/RealOutput.html">RealOutput</a></span>() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
<span class="hljs-keyword">relations</span>
&nbsp;&nbsp;w = der(spline.phi)
<span class="hljs-keyword">metadata</span> {
&nbsp;&nbsp;"Dyad": {"icons": {"default": "dyad://RotationalComponents/SingleSplineSensor.svg"}}
}
<span class="hljs-keyword">end</span></code></pre>
Flattened Source
"""
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}

"""</span>
<span class="hljs-keyword">component</span> VelocitySensor
&nbsp;&nbsp;<span class="hljs-comment">"Spline of the shaft from which sensor information shall be measured"</span>
&nbsp;&nbsp;<span class="hljs-symbol">spline</span> = <span>Spline</span>() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
&nbsp;&nbsp;<span class="hljs-comment">"Absolute angular velocity of flange as output signal"</span>
&nbsp;&nbsp;<span class="hljs-symbol">w</span> = <span>RealOutput</span>() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
<span class="hljs-keyword">relations</span>
&nbsp;&nbsp;0 = spline.tau
&nbsp;&nbsp;w = der(spline.phi)
<span class="hljs-keyword">metadata</span> {
&nbsp;&nbsp;"Dyad": {"icons": {"default": "dyad://RotationalComponents/SingleSplineSensor.svg"}}
}
<span class="hljs-keyword">end</span></code></pre>


Test Cases

No test cases defined.

  • Examples
  • Experiments
  • Analyses