a_rel$(instance)RelativeAccelerationSensor Icon

RelativeAccelerationSensor

Ideal sensor to measure the relative angular acceleration between two splines

This component extends from PartialRelativeSensor

Usage

RelativeAccelerationSensor()

Connectors

  • spline_a - (Spline)
  • spline_b - (Spline)
  • a_rel - This connector represents a real signal as an output from a component (RealOutput)

Variables

NameDescriptionUnits
phi_relRelative angle between two splinesrad
w_relRelative angular velocity between two splinesrad/s

Behavior

\[ \begin{align} 0 &= \mathtt{spline\_b.tau}\left( t \right) + \mathtt{spline\_a.tau}\left( t \right) \\ \mathtt{phi\_rel}\left( t \right) &= \mathtt{spline\_b.phi}\left( t \right) - \mathtt{spline\_a.phi}\left( t \right) \\ \mathtt{w\_rel}\left( t \right) &= \frac{\mathrm{d} \mathtt{phi\_rel}\left( t \right)}{\mathrm{d}t} \\ \mathtt{a\_rel}\left( t \right) &= \frac{\mathrm{d} \mathtt{w\_rel}\left( t \right)}{\mathrm{d}t} \\ 0 &= \mathtt{spline\_a.tau}\left( t \right) \end{align} \]

Source

# Ideal sensor to measure the relative angular acceleration between two splines
component RelativeAccelerationSensor
  extends PartialRelativeSensor
  # Relative angular acceleration between two splines as output signal
  a_rel = RealOutput() [{
    "JuliaSim": {
      "placement": {"icon": {"x1": 450, "y1": 950, "x2": 550, "y2": 1050, "rot": 90}}
    }
  }]
  # Relative angle between two splines
  variable phi_rel::Angle
  # Relative angular velocity between two splines
  variable w_rel::AngularVelocity
relations
  phi_rel = spline_b.phi-spline_a.phi
  w_rel = der(phi_rel)
  a_rel = der(w_rel)
  0 = spline_a.tau
metadata {
  "JuliaSim": {
    "icons": {"default": "jsml://RotationalComponents/RelSensor-Angle-Vel-Acc.svg"}
  }
}
end
Flattened Source
# Ideal sensor to measure the relative angular acceleration between two splines
component RelativeAccelerationSensor
  # Left spline of shaft
  spline_a = Spline() [{
    "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}
  }]
  # Right spline of shaft
  spline_b = Spline() [{
    "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
  }]
  # Relative angular acceleration between two splines as output signal
  a_rel = RealOutput() [{
    "JuliaSim": {
      "placement": {"icon": {"x1": 450, "y1": 950, "x2": 550, "y2": 1050, "rot": 90}}
    }
  }]
  # Relative angle between two splines
  variable phi_rel::Angle
  # Relative angular velocity between two splines
  variable w_rel::AngularVelocity
relations
  0 = spline_a.tau+spline_b.tau
  phi_rel = spline_b.phi-spline_a.phi
  w_rel = der(phi_rel)
  a_rel = der(w_rel)
  0 = spline_a.tau
metadata {
  "JuliaSim": {
    "icons": {"default": "jsml://RotationalComponents/RelSensor-Angle-Vel-Acc.svg"}
  }
}
end

Test Cases

  • Examples
  • Experiments
  • Analyses