Main Content

AC Voltage Source

Implement sinusoidal voltage source

  • AC Voltage Source block

Libraries:
Simscape / Electrical / Specialized Power Systems / Sources

Description

The AC Voltage Source block implements an ideal AC voltage source. The generated voltage U is described by the following relationship:

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

Negative values are allowed for amplitude and phase. A frequency of 0 and phase equal to 90 degrees specify a DC voltage source. Negative frequency is not allowed; otherwise the software signals an error, and the block displays a question mark in the block icon.

Examples

The power_acvoltage example uses two AC Voltage Source blocks at different frequencies connected in series across a resistor. The sum of the two voltages is read by a Voltage Measurement block.

Ports

Conserving

expand all

Specialized electrical conserving port associated with the positive terminal.

Specialized electrical conserving port associated with the negative terminal.

Parameters

expand all

To edit block parameters interactively, use the Property Inspector. From the Simulink® Toolstrip, on the Simulation tab, in the Prepare gallery, select Property Inspector.

Parameters

Peak amplitude of the generated voltage, in volts (V).

Phase in degrees (deg).

Source frequency in hertz (Hz).

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

Select Voltage to measure the voltage across the terminals of the AC Voltage 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

Voltage

Usrc:

Load Flow

The load flow parameters define block parameters for use with the Load Flow tool of the Powergui block. These load flow parameters are for model initialization only. They have no impact on the block model or on the simulation performance.

The configuration of the Load Flow tab depends on the option selected for the Generator type parameter.

Specify the generator type of the voltage source.

Select swing to implement a generator controlling the magnitude and phase angle of its terminal voltage. Specify the reference voltage magnitude and angle in the Swing bus or PV bus voltage and Swing bus voltage angle parameters of the Load Flow Bus block connected to the voltage source terminals.

Select PV to implement a generator controlling its output active power P and voltage magnitude V. Specify P in the Active power generation P parameter of the block. Specify V in the Swing bus or PV bus voltage parameter of the Load Flow Bus block connected to the voltage source terminals. You can control the minimum and maximum reactive power generated by the block by using the Minimum reactive power Qmin and Maximum reactive power Qmax parameters.

Select PQ to implement a generator controlling its output active power P and reactive power Q. Specify P and Q in the Active power generation P and Reactive power generation Q parameters of the block, respectively.

Specify the active power that you want generated by the source, in watts. When the machine operates in motor mode, you specify a negative value.

Dependencies

To enable this parameter, set Generator type to PV or PQ.

Specify the reactive power that you want generated by the source, in vars. A negative value indicates that the reactive power is absorbed by the machine.

Dependencies

To enable this parameter, set Generator type to PQ.

Minimum reactive power that can be generated by the source while keeping the terminal voltage at its reference value. This reference voltage is specified in the Swing bus or PV bus voltage parameter of the Load Flow Bus block connected to the source terminals. The default value is -inf, which means that there is no lower limit on the reactive power output.

Dependencies

To enable this parameter, set Generator type to PV.

Maximum reactive power that can be generated by the source while keeping the terminal voltage at its reference value. This reference voltage is specified in the Swing bus or PV bus voltage parameter of the Load Flow Bus block connected to the source terminals. The default value is inf, which means that there is no upper limit on the reactive power output.

Dependencies

To enable this parameter, set Generator type to PV.

Extended Capabilities

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

Version History

Introduced before R2006a

Go to top of page