Hauptinhalt

Sinusoidal Torque Source

R2026b

Produce sinusoidal torque

  • Sinusoidal Torque Source block

Libraries:
Simscape / Driveline / Sources

Description

The Sinusoidal Torque Source block produces sinusoidal torque with a constant offset. A positive torque value generates torque acting from port B to port F.

The defining equation for the sinusoidal torque that the block generates is

T=To+A*sin(2πft+φ),

where:

  • T is the output torque.

  • To is the offset torque 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 sinusoidal output torque oscillates about.

Programmatic Use

Parameter: offset

Peak amplitude of the sinusoidal output torque.

Programmatic Use

Parameter: amplitude

Peak amplitude of the sinusoidal output torque.

Programmatic Use

Parameter: phase_shift

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

Programmatic Use

Parameter: frequency

Programmatic Use: Add Block

To add the block programmatically, use the add_block function with one of these library block paths as the source.

"sdl_lib/Sources/Sinusoidal Torque Source"

Example: add_block("sdl_lib/Sources/Sinusoidal Torque Source","myModel/myBlock",MakeNameUnique="on")

For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.

Extended Capabilities

expand all

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

Version History

Introduced in R2016b