WS

Angular Velocity Source

Mechanics
Run the live example Free · no sign-up · runs in your browser

The Angular Velocity Source block models an ideal mechanical velocity source maintaining a prescribed angular velocity difference between two conserving rotational flanges (flange_a and flange_b).

It acts as an ideal stiff prime mover or speed-regulated motor delivering whatever torque is required to enforce the specified rotational speed.

Real-World Analog: Represents a speed-governed electric drive spindle or internal combustion engine forcing a fixed or programmed rotational velocity regardless of load torque.

Mathematical Model

The source imposes an across-variable constraint between its two flanges:

ωa(t)−ωb(t)=ω(t)\omega_a(t) - \omega_b(t) = \omega(t)

For DC operation (source_type = "DC"):

ω(t)=ωset\omega(t) = \omega_{\text{set}}

For AC sinusoidal operation (source_type = "AC"):

ω(t)=ωset⋅sin⁡(2πft)\omega(t) = \omega_{\text{set}} \cdot \sin(2\pi f t)

Where:

  • \omega_a, \omega_b are the angular velocities at flanges A and B in radians per second (rad/s\text{rad/s}).
  • \omega_{\text{set}} is the configured speed amplitude in rad/s\text{rad/s}.
  • f is the oscillation frequency in Hertz (Hz\text{Hz}).

When the optional causal input port in is connected, it overrides ωset\omega_{\text{set}}:

ω(t)=u(t)\omega(t) = u(t)

The reaction torque τ\tau is determined implicitly by the connected network.

Inputs & Outputs

Direction ID Label Type Status
→ In in Ctrl number Optional
→ In flange_a A number Required
→ In flange_b B number Required

Parameters

Parameters Label Type Default Description
angular_velocity Angular Velocity (ω) number 10 Imposed angular velocity in rad/s
source_type Source Type select DC DC constant or AC sinusoidal speed
frequency Frequency (f) number 50 Frequency in Hz when AC source type is selected

Usage Examples

Constant Speed Driveline Test

Drive a mechanical damper at a steady rotational speed:

AngularVelocitySource(w=31.4) -> RotationalDamper(d=0.5) -> RotationalReference

Sinusoidal Torsional Excitation

Excite a torsional spring-inertia resonant system at 5 Hz:

AngularVelocitySource(w=5.0, type="AC", f=5.0) -> RotationalSpring(k=200) -> Inertia(J=0.1)

Remarks & Best Practices

  • Across / Effort Source: Implemented as an auxiliary MNA branch with an ideal velocity constraint, analogous to an ideal voltage source.
  • Infinite Torque Capability: The ideal source generates unlimited torque if connected to a locked rotor; include realistic series compliance (RotationalSpring) when modeling mechanical stiffness.
  • Reference Grounding: Flange B provides the speed reference baseline, typically tied to RotationalReference.

Related Components