AC Voltage Source
Implement sinusoidal voltage source
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:
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
+ — Positive terminal
specialized electrical
Specialized electrical conserving port associated with the positive terminal.
- — Negative terminal
specialized electrical
Specialized electrical conserving port associated with the negative terminal.
Parameters
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 — Peak amplitude of generated voltage
100
(default) | scalar
Peak amplitude of the generated voltage, in volts (V).
Phase — Phase
0
(default) | scalar
Phase in degrees (deg).
Frequency — Source frequency
60
(default) | scalar
Source frequency in hertz (Hz).
Sample time — Sample period
0
(default) | nonnegative scalar
Sample period in seconds (s). The default is 0
,
corresponding to a continuous source.
Measurements — Measurements option
None
(default) | Voltage
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 |
|
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.
Generator type — Generator type of voltage source
swing
(default) | PV
| PQ
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.
Active power generation P — Active power generated by source
10e3
| scalar
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
.
Reactive power generation Q — Reactive power generated by source
0 (default) | scalar
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 Qmin — Minimum reactive power generated by the source
-inf
(default) | scalar
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 Qmax — Maximum reactive power generated by the source
inf
(default) | scalar
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
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)