主要内容

Sinusoidal Translational Velocity Source

R2026b

Produce sinusoidal translational velocity

  • Sinusoidal Translational Velocity Source block

Libraries:
Simscape / Driveline / Sources

Description

The Sinusoidal Translational Velocity Source block produces sinusoidal translational velocity with a constant offset.

The relative translational velocity between the base and follower interfaces is

vFB=vFvB,

where:

  • v FB is the relative translational velocity.

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

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

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

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

where:

  • v is the output translational velocity.

  • vo is the offset translational 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 translational conserving port associated with the base interface.

Programmatic Use

Port: B

Mechanical translational conserving port associated with the follower interface.

Programmatic Use

Port: F

Parameters

expand all

Average value that the output sinusoidal translational velocity oscillates about.

Programmatic Use

Parameter: offset

Peak amplitude of the output sinusoidal translational velocity.

Programmatic Use

Parameter: amplitude

Phase shift of the output sinusoidal translational velocity

Programmatic Use

Parameter: phase_shift

Frequency of the output sinusoidal translational 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