Skip to content
LIBRARY
Sources.ConstantSpeed.md

Sources.ConstantSpeed ​

Deprecated alias for ConstantVelocity.

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

This component extends from TranslationalComponents.Sources.ConstantVelocity

Usage ​

TranslationalComponents.Sources.ConstantSpeed(v_fixed)

Parameters: ​

NameDescriptionUnitsDefault value
v_fixedFixed speed (if negative, force is acting as load)m/s

Connectors ​

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

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

Variables ​

NameDescriptionUnits
sDistance between flange and support (= flange.s - support.s)m
fAccelerating force acting at flange (= flange.f)N
vVelocity of flange with respect to support (= der(s))m/s

Behavior ​

Source ​

dyad
"""
Deprecated alias for `ConstantVelocity`.

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

`ConstantSpeed` has been renamed to `ConstantVelocity` to align the Translational library
naming with the Dyad mechanical libraries. This alias is retained so existing models keep
working; use `TranslationalComponents.Sources.ConstantVelocity` in new models.
"""
component ConstantSpeed
  "Flange of component"
  flange = Flange() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
  "Support/housing of component"
  support = Flange() {"Dyad": {"placement": {"icon": {"x1": 450, "y1": 950, "x2": 550, "y2": 1050}}}}
  "Distance between flange and support (= flange.s - support.s)"
  variable s::Length
  "Accelerating force acting at flange (= flange.f)"
  variable f::Dyad.Force
  "Fixed speed (if negative, force is acting as load)"
  parameter v_fixed::Velocity
  "Velocity of flange with respect to support (= der(s))"
  variable v::Velocity
relations
  s = flange.s - support.s
  support.f = -flange.f
  f = flange.f
  v = der(s)
  v = v_fixed
metadata {
  "Dyad": {
    "icons": {"default": "dyad://TranslationalComponents/ConstantVelocity.svg"},
    "deprecated": {
      "message": "`ConstantSpeed` has been renamed to `ConstantVelocity`. Use `TranslationalComponents.Sources.ConstantVelocity` instead.",
      "hotfix": {
        "action": "replace",
        "value": "TranslationalComponents.Sources.ConstantVelocity"
      }
    }
  }
}
end


Test Cases ​

No test cases defined.

  • Examples

  • Experiments

  • Analyses