An RC and an RL network
AC analysis; phase plots with multiplot.
The same ac source drives two networks: a series capacitor into a resistor (a high pass, node 2) and a series inductor into a resistor (a low pass, node 3). The .control block sets units to degrees and plots the phase of each output in its own chart with multiplot.
- vp(2)
- vp(3)
The circuit: examples/rc.cir
rc circuit vin 1 0 ac 1 c1 1 2 1n r1 2 0 1k l1 1 3 1m r2 3 0 1k .control set units="degrees" ac dec 10 1 1meg plot vp(2) vp(3) multiplot ylimit -90 90 .endc .end
Run it with spice rc.cir, or open it with File › Load netlist in the Qt window. The plots and output above were made by util/mkexamples.py, which runs the deck in batch mode. All examples