Contents

AC Current Source

Implement sinusoidal current source

Library

Electrical Sources

Description

The AC Current Source block implements an ideal AC current source. The positive current direction is indicated by the arrow in the block icon. The generated current I is described by the following relationship:

I=Asin(ωt+ϕ),  ω=2πf,  ϕ=Phase in radians.

Negative values are allowed for amplitude and phase. A zero frequency and a 90 degree phase specify a DC current source. You cannot enter a negative frequency; the software returns an error in that case, and the block displays a question mark in the block icon. You can modify the first three block parameters at any time during the simulation.

Dialog Box and Parameters

Peak amplitude

The peak amplitude of the generated current, in amperes (A).

Phase

The phase in degrees (deg). Specify a frequency of 0 and a phase of 90 degrees to implement a DC current source.

Frequency

The source frequency in hertz (Hz). Specify a frequency of 0 and a phase of 90 degrees to implement a DC current source.

Sample time

The sample period in seconds (s). The default is 0, corresponding to a continuous source.

Measurements

Select Current to measure the current flowing through the AC Current Source block.

Place a Multimeter block in your model to display the selected measurements during the simulation. In the Available Measurements list box of the Multimeter block, the measurement is identified by a label followed by the block name.

Measurement

Label

Current

Isrc:

Example

The power_accurrentpower_accurrent example uses two AC Current Source blocks in parallel to sum two sinusoidal currents in a resistor.

Was this topic helpful?