ForceForce Icon

Force

An ideal force source that applies equal and opposite forces to two translational mechanical flanges, controlled by an external signal.

This component models an ideal source of force acting between its two translational mechanical flanges, flange_a and flange_b (inherited from PartialTwoFlanges). The magnitude and direction of the force are determined by the external input signal f. The input f directly defines the force exerted by flange_a on the connected component. The core behavior is defined by the equations relating the flange forces to the input signal $f$ :

\[flange\_a.f = f \\ flange\_b.f = -f\]

This component extends from PartialTwoFlanges

Usage

TranslationalComponents.Force()

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)
  • f - This connector represents a real signal as an input to a component (RealInput)

Behavior

\[ \begin{align} \mathtt{flange\_a.f}\left( t \right) &= f\left( t \right) \\ \mathtt{flange\_b.f}\left( t \right) &= - f\left( t \right) \end{align} \]

Source

"""
An ideal force source that applies equal and opposite forces to two translational mechanical flanges, controlled by an external signal.

This component models an ideal source of force acting between its two translational mechanical flanges, `flange_a` and `flange_b` (inherited from `PartialTwoFlanges`).
The magnitude and direction of the force are determined by the external input signal `f`. The input `f` directly defines the force exerted by `flange_a` on the connected component.
The core behavior is defined by the equations relating the flange forces to the input signal $f$ :

math flange_a.f = f \ flange_b.f = -f

"""</span>
<span class="hljs-keyword">component</span> Force
&nbsp;&nbsp;<span class="hljs-keyword">extends</span> <span class="hljs-link"><a href="https://help.juliahub.com/dyad/dev/stdlib/TranslationalComponents/types/PartialTwoFlanges.html">PartialTwoFlanges</a></span>
&nbsp;&nbsp;<span class="hljs-comment">"The external input signal defining the force magnitude and direction applied by flange_a; flange_b applies -f."</span>
&nbsp;&nbsp;<span class="hljs-symbol">f</span> = <span class="hljs-link"><a href="https://help.juliahub.com/dyad/dev/stdlib/Dyad/connectors/RealInput.html">RealInput</a></span>() {
&nbsp;&nbsp;&nbsp;&nbsp;"Dyad": {"placement": {"icon": {"x1": 450, "y1": 100, "x2": 550, "y2": 200, "rot": 90}}}
&nbsp;&nbsp;}
<span class="hljs-keyword">relations</span>
&nbsp;&nbsp;flange_a.f = f
&nbsp;&nbsp;flange_b.f = -f
<span class="hljs-keyword">metadata</span> {"Dyad": {"icons": {"default": "dyad://TranslationalComponents/Force.svg"}}}
<span class="hljs-keyword">end</span></code></pre>
Flattened Source
"""
An ideal force source that applies equal and opposite forces to two translational mechanical flanges, controlled by an external signal.

This component models an ideal source of force acting between its two translational mechanical flanges, `flange_a` and `flange_b` (inherited from `PartialTwoFlanges`).
The magnitude and direction of the force are determined by the external input signal `f`. The input `f` directly defines the force exerted by `flange_a` on the connected component.
The core behavior is defined by the equations relating the flange forces to the input signal $f$ :

math flange_a.f = f \ flange_b.f = -f

"""</span>
<span class="hljs-keyword">component</span> Force
&nbsp;&nbsp;<span class="hljs-comment">"Left mechanical translational flange (connector)"</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">"Right mechanical translational flange (connector)"</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">"The external input signal defining the force magnitude and direction applied by flange_a; flange_b applies -f."</span>
&nbsp;&nbsp;<span class="hljs-symbol">f</span> = <span>RealInput</span>() {
&nbsp;&nbsp;&nbsp;&nbsp;"Dyad": {"placement": {"icon": {"x1": 450, "y1": 100, "x2": 550, "y2": 200, "rot": 90}}}
&nbsp;&nbsp;}
<span class="hljs-keyword">relations</span>
&nbsp;&nbsp;flange_a.f = f
&nbsp;&nbsp;flange_b.f = -f
<span class="hljs-keyword">metadata</span> {"Dyad": {"icons": {"default": "dyad://TranslationalComponents/Force.svg"}}}
<span class="hljs-keyword">end</span></code></pre>


Test Cases

No test cases defined.