DamperDamper Icon

Damper

Linear translational damper relating force to relative velocity.

This component represents an ideal linear translational mechanical damper. The force f generated by the damper is proportional to the relative velocity v_{rel} between its two mechanical flanges. The constant of proportionality is the translational damping coefficient d. The force always acts to oppose the relative motion between the flanges. The component also calculates the instantaneous power lossPower dissipated by the damping action. The defining equations are:

\[f = d \cdot v_{rel}\]

\[lossPower = f \cdot v_{rel} = d \cdot v_{rel}^2\]

This component extends from PartialCompliantWithRelativeStates

Usage

TranslationalComponents.Damper(d)

Parameters:

NameDescriptionUnitsDefault value
dTranslational damping coefficient relating force to relative velocityN.s/m

Connectors

  • flange_a - This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. (Flange)
  • flange_b - This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. (Flange)

Variables

NameDescriptionUnits
s_relRelative displacement between flangeb and flangea (flangeb.s - flangea.s).m
v_relRelative velocity between flangeb and flangea, defined as der(s_rel).m/s
fInternal force exerted by the compliant element between the flanges.N
lossPowerInstantaneous power dissipated by the damperW

Behavior

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

Source

"""
Linear translational damper relating force to relative velocity.

This component represents an ideal linear translational mechanical damper.
The force `f` generated by the damper is proportional to the relative velocity `v_{rel}` between its two mechanical flanges.
The constant of proportionality is the translational damping coefficient `d`.
The force always acts to oppose the relative motion between the flanges.
The component also calculates the instantaneous power `lossPower` dissipated by the damping action.
The defining equations are:

math f = d \cdot v_{rel}

math lossPower = f \cdot v{rel} = d \cdot v{rel}^2

"""</span>
<span class="hljs-keyword">component</span> Damper
&nbsp;&nbsp;<span class="hljs-keyword">extends</span> <span class="hljs-link"><a href="https://help.juliahub.com/dyad/dev/stdlib/TranslationalComponents/types/PartialCompliantWithRelativeStates.html">PartialCompliantWithRelativeStates</a></span>
&nbsp;&nbsp;<span class="hljs-comment">"Translational damping coefficient relating force to relative velocity"</span>
&nbsp;&nbsp;<span class="hljs-keyword">parameter</span> <span class="hljs-symbol">d</span>::<span class="hljs-link"><a href="https://help.juliahub.com/dyad/dev/stdlib/Dyad/types/TranslationalDampingConstant.html">TranslationalDampingConstant</a></span>
&nbsp;&nbsp;<span class="hljs-comment">"Instantaneous power dissipated by the damper"</span>
&nbsp;&nbsp;<span class="hljs-keyword">variable</span> <span class="hljs-symbol">lossPower</span>::<span class="hljs-link"><a href="https://help.juliahub.com/dyad/dev/stdlib/Dyad/types/Power.html">Power</a></span>
<span class="hljs-keyword">relations</span>
&nbsp;&nbsp;f = d * v_rel
&nbsp;&nbsp;lossPower = f * v_rel
<span class="hljs-keyword">metadata</span> {"Dyad": {"icons": {"default": "dyad://TranslationalComponents/Damper.svg"}}}
<span class="hljs-keyword">end</span></code></pre>
Flattened Source
"""
Linear translational damper relating force to relative velocity.

This component represents an ideal linear translational mechanical damper.
The force `f` generated by the damper is proportional to the relative velocity `v_{rel}` between its two mechanical flanges.
The constant of proportionality is the translational damping coefficient `d`.
The force always acts to oppose the relative motion between the flanges.
The component also calculates the instantaneous power `lossPower` dissipated by the damping action.
The defining equations are:

math f = d \cdot v_{rel}

math lossPower = f \cdot v{rel} = d \cdot v{rel}^2

"""</span>
<span class="hljs-keyword">component</span> Damper
&nbsp;&nbsp;<span class="hljs-comment">"Port for the first mechanical translational flange."</span>
&nbsp;&nbsp;<span class="hljs-symbol">flange_a</span> = <span>Flange</span>() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
&nbsp;&nbsp;<span class="hljs-comment">"Port for the second mechanical translational flange."</span>
&nbsp;&nbsp;<span class="hljs-symbol">flange_b</span> = <span>Flange</span>() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
&nbsp;&nbsp;<span class="hljs-comment">"Relative displacement between flange_b and flange_a (flange_b.s - flange_a.s)."</span>
&nbsp;&nbsp;<span class="hljs-keyword">variable</span> <span class="hljs-symbol">s_rel</span>::<span>Distance</span>
&nbsp;&nbsp;<span class="hljs-comment">"Relative velocity between flange_b and flange_a, defined as der(s_rel)."</span>
&nbsp;&nbsp;<span class="hljs-keyword">variable</span> <span class="hljs-symbol">v_rel</span>::<span>Velocity</span>
&nbsp;&nbsp;<span class="hljs-comment">"Internal force exerted by the compliant element between the flanges."</span>
&nbsp;&nbsp;<span class="hljs-keyword">variable</span> <span class="hljs-symbol">f</span>::<span>Dyad.Force</span>
&nbsp;&nbsp;<span class="hljs-comment">"Translational damping coefficient relating force to relative velocity"</span>
&nbsp;&nbsp;<span class="hljs-keyword">parameter</span> <span class="hljs-symbol">d</span>::<span>TranslationalDampingConstant</span>
&nbsp;&nbsp;<span class="hljs-comment">"Instantaneous power dissipated by the damper"</span>
&nbsp;&nbsp;<span class="hljs-keyword">variable</span> <span class="hljs-symbol">lossPower</span>::<span>Power</span>
<span class="hljs-keyword">relations</span>
&nbsp;&nbsp;s_rel = flange_b.s - flange_a.s
&nbsp;&nbsp;v_rel = der(s_rel)
&nbsp;&nbsp;flange_b.f = f
&nbsp;&nbsp;flange_a.f = -f
&nbsp;&nbsp;f = d * v_rel
&nbsp;&nbsp;lossPower = f * v_rel
<span class="hljs-keyword">metadata</span> {"Dyad": {"icons": {"default": "dyad://TranslationalComponents/Damper.svg"}}}
<span class="hljs-keyword">end</span></code></pre>


Test Cases

No test cases defined.