Skip to content
Rotational.ConstantSpeed.md

Rotational.ConstantSpeed

This component extends from PartialTorque

Usage

TranslatedComponents.Rotational.ConstantSpeed(w_fixed)

Parameters:

NameDescriptionUnitsDefault value
useSupport= true, if support flange enabled, otherwise implicitly groundedfalse
w_fixedFixed speedrad/s

Connectors

  • flange - 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)

Variables

NameDescriptionUnits
phi_supportAbsolute angle of support flangerad
phiAngle of flange with respect to support (= flange.phi - support.phi)rad
wAngular velocity of flange with respect to support (= der(phi))rad/s

Behavior

phi(t)=flange.phi(t)phi_support(t)dphi(t)dt=w(t)w(t)=w_fixedphi_support(t)=0

Source

dyad
component ConstantSpeed
  extends PartialTorque
  # Fixed speed
  parameter w_fixed::Dyad.AngularVelocity
  # Angular velocity of flange with respect to support (= der(phi))
  variable w::Dyad.AngularVelocity
relations
  der(phi) = w
  w = w_fixed
end
Flattened Source
dyad
component ConstantSpeed
  flange = Spline()
  support = Spline() if useSupport
  # = true, if support flange enabled, otherwise implicitly grounded
  structural parameter useSupport::Boolean = false
  # Absolute angle of support flange
  variable phi_support::Dyad.Angle
  # Angle of flange with respect to support (= flange.phi - support.phi)
  variable phi::Dyad.Angle
  # Fixed speed
  parameter w_fixed::Dyad.AngularVelocity
  # Angular velocity of flange with respect to support (= der(phi))
  variable w::Dyad.AngularVelocity
relations
  if useSupport
    initial support.phi = phi_support
    initial support.tau = -flange.tau
  else
    phi_support = 0
  end
  phi = flange.phi - phi_support
  der(phi) = w
  w = w_fixed
metadata {}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses