Hey guys, I've started playing around with ngspice and LTspice and have been wondering how to do
input / output impedance measurement along with phase shift.
I've made a quick series RCL circuit that I've already worked out on paper, for a signal of 1MHz the
impedance should be 1004.63 ohms with a phase angle of -5.5 degrees.
RCL Impedance Test
V1 1 0 AC 1 DC 1
Vamm 1 2 AC 0 DC 0
R1 2 3 1k
C1 3 4 1nF
L1 4 0 10uH
.ac lin 2 1meg 1meg
.end
I have already worked out how to measure the input impedance with Z = V(1)/I(Vamm) which
works fine in LTspice but I get a rather odd result of 1009.279 ohms in ngspice.
I'm also not quite sure how to measure the phase or output impedance, Vamm in LTspice shows
5.5 degrees imaginary but I don't think that is right seeing as it is positive rather than negative.
Help would be very much appreciated.
