a$(instance)AccelerationSensor Icon

AccelerationSensor

Ideal sensor to measure the absolute acceleration of flange

This component extends from PartialAbsoluteSensor

Usage

AccelerationSensor()

Connectors

  • flange - (Flange)
  • a - This connector represents a real signal as an output from a component (RealOutput)

Variables

NameDescriptionUnits
vAbsolute velocity of flangem/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 to measure the absolute acceleration of flange
component AccelerationSensor
  extends PartialAbsoluteSensor
  # Absolute acceleration of flange as output signal
  a = RealOutput() [{
    "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
  }]
  # Absolute velocity of flange
  variable v::Velocity
relations
  v = der(flange.s)
  a = der(v)
metadata {
  "JuliaSim": {"icons": {"default": "jsml://TranslationalComponents/AbsoluteSensor.svg"}}
}
end
Flattened Source
# Ideal sensor to measure the absolute acceleration of flange
component AccelerationSensor
  flange = Flange() [{
    "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}
  }]
  # Absolute acceleration of flange as output signal
  a = RealOutput() [{
    "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
  }]
  # Absolute velocity of flange
  variable v::Velocity
relations
  0 = flange.f
  v = der(flange.s)
  a = der(v)
metadata {
  "JuliaSim": {"icons": {"default": "jsml://TranslationalComponents/AbsoluteSensor.svg"}}
}
end

Test Cases