Voltage Source AC

Purpose

Generate sinusoidal voltage

Library

Electrical / Sources

Description

../../_images/v_ac.svg

The AC Voltage Source generates a sinusoidal voltage between its two electrical terminals. The voltage is considered positive at the terminal marked with a “+”. The momentary voltage \(v\) is determined by the equation

\[v = A \cdot \sin(\omega \cdot t + \varphi)\]

where \(t\) is the simulation time.

If a variable-step solver is used, the solver step size is automatically limited to ensure that a smooth voltage waveform is produced.

Note

A voltage source may not be short-circuited or connected in parallel to a capacitor or any other voltage source.

Parameters

Each of the following parameters may either be a scalar or a vector corresponding to the implicit width of the component:

Amplitude

The amplitude \(A\) of the voltage, in volts \((\mathrm{V})\). The default is 1.

Frequency

The angular frequency \(\omega\), in \(\left( \frac{\mathrm{rad}}{\mathrm{s}} \right)\). The default is 2*pi*50 which corresponds to \(50\,\mathrm{Hz}\).

Phase

The phase shift \(\varphi\), in radians. The default is 0.

Probe Signals

Source voltage

The source voltage in volts \((\mathrm{V})\).

Source current

The current flowing through the source, in amperes \((\mathrm{A})\).

Source power

The instantaneous output power of the source, in watts \((\mathrm{W})\).