(V) Voltage Source Statement

Define a voltage source either as constant DC source or by using specific parametrized functions. If you want to use a different source function, you can use (B) Function-Based Source Statement.

Vname pos neg <DC> dcvalue
Vname pos neg [function]

See Source Statement Functions for [function] syntax. If no function is specified, the source is treated as DC source with dcvalue=0.

Note

  • We do not support AC-related arguments in sources. Please use PLECS blocks for AC analysis.

  • We only support sources that provide either a dcvalue` or a [function]. Some SPICE version allow to provide both simultaneously, which is equivalent to putting two sources in series.

Examples

V1 n 0 1
V2 n 0 SIN 0 1 50