Contenuto principale

AC Current Source

R2026b

Ideal sinusoidal current source

  • AC Current Source block

Libraries:
Simscape / Foundation Library / Electrical / Electrical Sources

Description

The AC Current Source block represents an ideal current source that maintains sinusoidal current through it, independent of the voltage across its terminals.

The output current is defined by the following equation:

I=I0⋅sin(2π⋅f⋅t+φ)

where:

  • I is current.

  • I0 is peak amplitude.

  • f is frequency.

  • φ is phase shift.

  • t is time.

The positive direction of the current flow is indicated by the arrow.

Examples

Ports

Conserving

expand all

Electrical conserving port associated with the source positive terminal.

Programmatic Use

Port: p

Electrical conserving port associated with the source negative terminal.

Programmatic Use

Port: n

Parameters

expand all

Peak current amplitude.

Programmatic Use

Parameter: amp

Phase shift in angular units.

Programmatic Use

Parameter: shift

Current frequency, specified in Hz or units directly convertible to Hz (where Hz is defined as 1/s). For example, kHz and MHz are valid units, but rad/s is not.

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.

"fl_lib/Electrical/Electrical Sources/AC Current Source"

Example: add_block("fl_lib/Electrical/Electrical Sources/AC Current 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 R2007a