Skip to content
LIBRARY
Sources.SpeedSource.md

Sources.SpeedSource

Deprecated alias for VelocitySource.

This name is retained for backward compatibility. Use RotationalComponents.Sources.VelocitySource instead.

This component extends from RotationalComponents.Sources.VelocitySource

Usage

RotationalComponents.Sources.SpeedSource()

Parameters:

NameDescriptionUnitsDefault value
ref_typeType of reference signal handlingRotationalC....Filtered()

Connectors

  • spline - This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. (Spline)

  • support - This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. (Spline)

  • w_ref - This connector represents a real signal as an input to a component (RealInput)

Variables

NameDescriptionUnits
phi_supportAbsolute angle of the support splinerad
phiRotation angle of spline with respect to supportrad
wAngular velocity of spline with respect to supportrad/s
aAngular acceleration of spline with respect to supportrad/s2

Behavior

Source

dyad
"""
Deprecated alias for `VelocitySource`.

This name is retained for backward compatibility. Use
`RotationalComponents.Sources.VelocitySource` instead.
"""
component SpeedSource
  extends RotationalComponents.Sources.VelocitySource
relations
metadata {
  "Dyad": {
    "deprecated": {
      "message": "SpeedSource is deprecated; use VelocitySource instead.",
      "hotfix": {"action": "replace", "value": "RotationalComponents.Sources.VelocitySource"}
    }
  }
}
end
Flattened Source
dyad
"""
Deprecated alias for `VelocitySource`.

This name is retained for backward compatibility. Use
`RotationalComponents.Sources.VelocitySource` instead.
"""
component SpeedSource
  "Primary rotational shaft spline connector"
  spline = Spline() {"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}
  "Support spline connector"
  support = Spline() {
    "Dyad": {
      "placement": {"icon": {"iconName": "support", "x1": 450, "y1": 950, "x2": 550, "y2": 1050}}
    }
  }
  "Absolute angle of the support spline"
  variable phi_support::Angle
  "Reference angular velocity of spline with respect to support as input signal"
  w_ref = RealInput() {"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}
  "Type of reference signal handling"
  structural parameter ref_type::RotationalComponents.Sources.ReferenceType = RotationalComponents.Sources.ReferenceType.Filtered()
  "Rotation angle of spline with respect to support"
  variable phi::Angle(statePriority = 10)
  "Angular velocity of spline with respect to support"
  variable w::AngularVelocity(statePriority = 10)
  "Angular acceleration of spline with respect to support"
  variable a::AngularAcceleration
relations
  support.phi = phi_support
  support.tau = -spline.tau
  phi = spline.phi - phi_support
  w = der(phi)
  switch ref_type
    case Exact
      w = w_ref
      a = 0
    case Filtered
      initial w = w_ref
      a = der(w)
      a = (w_ref - w) * 2 * π * getproperty(ref_type, Symbol("f_crit"))
  end
metadata {
  "Dyad": {
    "icons": {"default": "dyad://RotationalComponents/Pos-Speed-Acc-Move.svg"},
    "deprecated": {
      "message": "SpeedSource is deprecated; use VelocitySource instead.",
      "hotfix": {"action": "replace", "value": "RotationalComponents.Sources.VelocitySource"}
    }
  }
}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses