w$(instance)VelocitySensor Icon

VelocitySensor

Ideal sensor to measure the absolute angular velocity of flange

This component extends from PartialAbsoluteSensor

Usage

VelocitySensor()

Connectors

  • spline - (Spline)
  • w - This connector represents a real signal as an output from a component (RealOutput)

Behavior

using RotationalComponents #hide
using ModelingToolkit #hide
@named sys = VelocitySensor() #hide
full_equations(sys) #hide

Source

# Ideal sensor to measure the absolute angular velocity of flange
component VelocitySensor
  extends PartialAbsoluteSensor
  # Absolute angular velocity of flange as output signal
  w = RealOutput() [{
    "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
  }]
relations
  w = der(flange.phi)
metadata {
  "JuliaSim": {"icons": {"default": "jsml://RotationalComponents/SingleSplineSensor.svg"}}
}
end
Flattened Source
# Ideal sensor to measure the absolute angular velocity of flange
component VelocitySensor
  # Spline of the shaft from which sensor information shall be measured
  spline = Spline() [{
    "JuliaSim": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}
  }]
  # Absolute angular velocity of flange as output signal
  w = RealOutput() [{
    "JuliaSim": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}
  }]
relations
  0 = spline.tau
  w = der(flange.phi)
metadata {
  "JuliaSim": {"icons": {"default": "jsml://RotationalComponents/SingleSplineSensor.svg"}}
}
end

Test Cases

  • Examples
  • Experiments
  • Analyses