f$(instance)Force Icon

Force

Input signal acting as force on two flanges

The input signal to this component is the force imposed by the component. A positive value for the input signal represents the transfer of a positive linear momentum from flange_a to flange_b. In other words, a positive value will act to increase the linear momentum of whatever is connected atflangeband decrease the linear momentum of whatever is connected atflangea`.

This component extends from PartialTwoFlanges

Usage

Force()

Connectors

  • flange_a - (Flange)
  • flange_b - (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

# Input signal acting as force on two flanges
#
# The input signal to this component is the force imposed by the component.  A positive value for the
# input signal represents the transfer of a positive linear momentum from `flange_a` to `flange_b.  In
# other words, a positive value will act to increase the linear momentum of whatever is connected
# at `flange_b` and decrease the linear momentum of whatever is connected at `flange_a`.
component Force
  extends PartialTwoFlanges
  f = RealInput() [{
    "JuliaSim": {"placement": {"icon": {"x1": 450, "y1": 100, "x2": 550, "y2": 200, "rot": 90}}}
  }]
relations
  flange_a.f = f
  flange_b.f = -f
metadata {"JuliaSim": {"icons": {"default": "jsml://TranslationalComponents/Force.svg"}}}
end
Flattened Source
# Input signal acting as force on two flanges
#
# The input signal to this component is the force imposed by the component.  A positive value for the
# input signal represents the transfer of a positive linear momentum from `flange_a` to `flange_b.  In
# other words, a positive value will act to increase the linear momentum of whatever is connected
# at `flange_b` and decrease the linear momentum of whatever is connected at `flange_a`.
component Force
  flange_a = Flange() [{
    "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}
  }]
  flange_b = Flange() [{
    "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
  }]
  f = RealInput() [{
    "JuliaSim": {"placement": {"icon": {"x1": 450, "y1": 100, "x2": 550, "y2": 200, "rot": 90}}}
  }]
relations
  flange_a.f = f
  flange_b.f = -f
metadata {"JuliaSim": {"icons": {"default": "jsml://TranslationalComponents/Force.svg"}}}
end

Test Cases