主要内容

Sinusoidal Rotational Velocity Source

R2026b

Produce sinusoidal rotational velocity

  • Sinusoidal Rotational Velocity Source block

Libraries:
Simscape / Driveline / Sources

Description

The Sinusoidal Rotational Velocity Source block produces sinusoidal rotational velocity with a constant offset.

The relative rotational velocity between the base and follower interfaces is

vFB=vFvB,

where:

  • v FB is the relative rotational velocity.

  • vF is the absolute rotational velocity at the follower interface.

  • vB is the absolute rotational velocity at the base interface.

The defining equation for the sinusoidal rotational velocity that the block generates is

v=vo+A*sin(2πft+φ),

where:

  • v is the output rotational velocity.

  • vo is the offset rotational velocity of the output.

  • A is the peak amplitude of the sinusoid.

  • f is frequency of the sinusoid in Hz.

  • t is time.

  • φ is phase shift of the sinusoid.

Ports

Conserving

expand all

Mechanical rotational conserving port associated with the base interface.

Programmatic Use

Port: B

Mechanical rotational conserving port associated with the follower interface.

Programmatic Use

Port: F

Parameters

expand all

Average value that the output sinusoidal rotational velocity oscillates about.

Programmatic Use

Parameter: offset

Peak amplitude of the output sinusoidal rotational velocity.

Programmatic Use

Parameter: amplitude

Phase shift of the output sinusoidal rotational velocity.

Programmatic Use

Parameter: phase_shift

Frequency of the output sinusoidal rotational velocity. The frequency must be greater than or equal to 0.

Programmatic Use

Parameter: frequency

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2016b