AccelerationSensor IconAccelerationSensor
Ideal sensor measuring the absolute translational acceleration of a flange.
This component measures the absolute acceleration of its connected flange. It first determines the absolute velocity of the flange by taking the time derivative of the flange's absolute position ($\text{flange.s}$). The absolute acceleration is then computed as the time derivative of this velocity. The governing equations are:
\[\begin{align*} v &= \frac{d(\text{flange.s})}{dt} \\ a = \frac{dv}{dt} &= \frac{d^2({\text{flange.s}})}{dt^2} \end{align*}\]
where $v$ is the internal absolute velocity variable and $a$ is the output signal representing the absolute acceleration. The position $\text{flange.s}$ is accessed via the flange.s variable, with the flange itself being inherited from PartialAbsoluteSensor.
This component extends from PartialAbsoluteSensor
Usage
TranslationalComponents.AccelerationSensor()
Connectors
flange- This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. (Flange)a- This connector represents a real signal as an output from a component (RealOutput)
Variables
| Name | Description | Units |
|---|---|---|
v | Internal variable representing the absolute velocity of the flange | m/s |
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} \\ a\left( t \right) &= \frac{\mathrm{d} v\left( t \right)}{\mathrm{d}t} \end{align} \]
Source
"""
Ideal sensor measuring the absolute translational acceleration of a flange.
This component measures the absolute acceleration of its connected flange.
It first determines the absolute velocity of the flange by taking the time derivative
of the flange's absolute position ($\text{flange.s}$). The absolute acceleration
is then computed as the time derivative of this velocity.
The governing equations are:math \begin{align} v &= \frac{d(\text{flange.s})}{dt} \
a = \frac{dv}{dt} &= \frac{d^2({\text{flange.s}})}{dt^2} \end{align}
where $v$ is the internal absolute velocity variable and $a$ is the
output signal representing the absolute acceleration. The position $\text{flange.s}$
is accessed via the `flange.s` variable, with the `flange` itself being inherited from `PartialAbsoluteSensor`.
"""</span>
<span class="hljs-keyword">component</span> AccelerationSensor
<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>
<span class="hljs-comment">"Output signal representing the absolute acceleration of the flange"</span>
<span class="hljs-symbol">a</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-comment">"Internal variable representing the absolute velocity of the flange"</span>
<span class="hljs-keyword">variable</span> <span class="hljs-symbol">v</span>::<span class="hljs-link"><a href="https://help.juliahub.com/dyad/dev/stdlib/Dyad/types/Velocity.html">Velocity</a></span>
<span class="hljs-keyword">relations</span>
v = der(flange.s)
a = der(v)
<span class="hljs-keyword">metadata</span> {
"Dyad": {"icons": {"default": "dyad://TranslationalComponents/AbsoluteSensor.svg"}}
}
<span class="hljs-keyword">end</span></code></pre>
Flattened Source
"""
Ideal sensor measuring the absolute translational acceleration of a flange.
This component measures the absolute acceleration of its connected flange.
It first determines the absolute velocity of the flange by taking the time derivative
of the flange's absolute position ($\text{flange.s}$). The absolute acceleration
is then computed as the time derivative of this velocity.
The governing equations are:math \begin{align} v &= \frac{d(\text{flange.s})}{dt} \
a = \frac{dv}{dt} &= \frac{d^2({\text{flange.s}})}{dt^2} \end{align}
where $v$ is the internal absolute velocity variable and $a$ is the
output signal representing the absolute acceleration. The position $\text{flange.s}$
is accessed via the `flange.s` variable, with the `flange` itself being inherited from `PartialAbsoluteSensor`.
"""</span>
<span class="hljs-keyword">component</span> AccelerationSensor
<span class="hljs-comment">"Mechanical flange connector through which the variable is sensed."</span>
<span class="hljs-symbol">flange</span> = <span>Flange</span>() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
<span class="hljs-comment">"Output signal representing the absolute acceleration of the flange"</span>
<span class="hljs-symbol">a</span> = <span>RealOutput</span>() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
<span class="hljs-comment">"Internal variable representing the absolute velocity of the flange"</span>
<span class="hljs-keyword">variable</span> <span class="hljs-symbol">v</span>::<span>Velocity</span>
<span class="hljs-keyword">relations</span>
0 = flange.f
v = der(flange.s)
a = der(v)
<span class="hljs-keyword">metadata</span> {
"Dyad": {"icons": {"default": "dyad://TranslationalComponents/AbsoluteSensor.svg"}}
}
<span class="hljs-keyword">end</span></code></pre>
Test Cases
No test cases defined.
Related
- Examples
- Experiments
- Analyses
- Tests