Skip to content
LIBRARY
Sensors.SpeedSensor.md

Sensors.SpeedSensor

Deprecated alias for VelocitySensor.

SpeedSensor has been renamed to VelocitySensor to align the Translational library naming with the Dyad mechanical libraries. This alias is retained so existing models keep working; use TranslationalComponents.Sensors.VelocitySensor in new models.

This component extends from TranslationalComponents.Sensors.VelocitySensor

Usage

TranslationalComponents.Sensors.SpeedSensor()

Connectors

  • flange - This connector represents a mechanical flange with position and force as the potential and flow variables, respectively. (Flange)

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

Behavior

julia
using TranslationalComponents #hide
using ModelingToolkit #hide
@named sys = TranslationalComponents.Sensors.SpeedSensor() #hide
let eqs = full_equations(sys); Base.length(eqs) > 25 ? nothing : eqs end #hide
<< @example-block not executed in draft mode >>

Source

dyad
"""
Deprecated alias for `VelocitySensor`.

`SpeedSensor` has been renamed to `VelocitySensor` to align the Translational library
naming with the Dyad mechanical libraries. This alias is retained so existing models keep
working; use `TranslationalComponents.Sensors.VelocitySensor` in new models.
"""
component SpeedSensor
  extends TranslationalComponents.Sensors.VelocitySensor
relations
metadata {
  "Dyad": {
    "icons": {"default": "dyad://TranslationalComponents/AbsoluteSensor.svg"},
    "deprecated": {
      "message": "`SpeedSensor` has been renamed to `VelocitySensor`. Use `TranslationalComponents.Sensors.VelocitySensor` instead.",
      "hotfix": {"action": "replace", "value": "TranslationalComponents.Sensors.VelocitySensor"}
    }
  }
}
end
Flattened Source
dyad
"""
Deprecated alias for `VelocitySensor`.

`SpeedSensor` has been renamed to `VelocitySensor` to align the Translational library
naming with the Dyad mechanical libraries. This alias is retained so existing models keep
working; use `TranslationalComponents.Sensors.VelocitySensor` in new models.
"""
component SpeedSensor
  "Mechanical flange connector through which the variable is sensed."
  flange = Flange() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
  "Absolute velocity of flange as output signal"
  v = RealOutput(units = "m/s") {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
relations
  0 = flange.f
  v = der(flange.s)
metadata {
  "Dyad": {
    "icons": {"default": "dyad://TranslationalComponents/AbsoluteSensor.svg"},
    "deprecated": {
      "message": "`SpeedSensor` has been renamed to `VelocitySensor`. Use `TranslationalComponents.Sensors.VelocitySensor` instead.",
      "hotfix": {"action": "replace", "value": "TranslationalComponents.Sensors.VelocitySensor"}
    }
  }
}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses