SpeedSensorSpeedSensor Icon

SpeedSensor

Ideal sensor that measures the absolute translational velocity of a mechanical flange.

This sensor provides the absolute velocity of its connected flange. The velocity v is determined by taking the time derivative of the flange's absolute position s. The governing equation is:

\[v = \frac{d flange.s}{dt}\]

This component extends from PartialAbsoluteSensor

Usage

TranslationalComponents.SpeedSensor()

Connectors

  • flange - This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. (Flange)
  • v - This connector represents a real signal as an output from a component (RealOutput)

Behavior

\[ \begin{align} 0 &= \mathtt{flange.f}\left( t \right) \\ v\left( t \right) &= \frac{\mathrm{d} \mathtt{flange.s}\left( t \right)}{\mathrm{d}t} \end{align} \]

Source

"""
Ideal sensor that measures the absolute translational velocity of a mechanical flange.

This sensor provides the absolute velocity of its connected `flange`.
The velocity `v` is determined by taking the time derivative of the `flange`'s
absolute position `s`. The governing equation is:

math v = \frac{d flange.s}{dt}

"""</span>
<span class="hljs-keyword">component</span> SpeedSensor
&nbsp;&nbsp;<span class="hljs-keyword">extends</span> <span class="hljs-link"><a href="https://help.juliahub.com/dyad/dev/stdlib/TranslationalComponents/types/PartialAbsoluteSensor.html">PartialAbsoluteSensor</a></span>
&nbsp;&nbsp;<span class="hljs-comment">"Absolute velocity of flange as output signal"</span>
&nbsp;&nbsp;<span class="hljs-symbol">v</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;v = der(flange.s)
<span class="hljs-keyword">metadata</span> {
&nbsp;&nbsp;"Dyad": {"icons": {"default": "dyad://TranslationalComponents/AbsoluteSensor.svg"}}
}
<span class="hljs-keyword">end</span></code></pre>
Flattened Source
"""
Ideal sensor that measures the absolute translational velocity of a mechanical flange.

This sensor provides the absolute velocity of its connected `flange`.
The velocity `v` is determined by taking the time derivative of the `flange`'s
absolute position `s`. The governing equation is:

math v = \frac{d flange.s}{dt}

"""</span>
<span class="hljs-keyword">component</span> SpeedSensor
&nbsp;&nbsp;<span class="hljs-comment">"Mechanical flange connector through which the variable is sensed."</span>
&nbsp;&nbsp;<span class="hljs-symbol">flange</span> = <span>Flange</span>() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
&nbsp;&nbsp;<span class="hljs-comment">"Absolute velocity of flange as output signal"</span>
&nbsp;&nbsp;<span class="hljs-symbol">v</span> = <span>RealOutput</span>() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
<span class="hljs-keyword">relations</span>
&nbsp;&nbsp;0 = flange.f
&nbsp;&nbsp;v = der(flange.s)
<span class="hljs-keyword">metadata</span> {
&nbsp;&nbsp;"Dyad": {"icons": {"default": "dyad://TranslationalComponents/AbsoluteSensor.svg"}}
}
<span class="hljs-keyword">end</span></code></pre>


Test Cases

No test cases defined.