Electronic – Trying to plot input and output resistance for a single BJT in LTspice

bjtcommon-emitterltspice

I'm trying to plot a single NPN transistors's own input and output resistances in common emitter configuration looking into the base from input and emitter. I showed below with arrows that the plot I'm trying to achieve is how the input impedance and output impedance varies with Vbe:

enter image description here

So the collector voltage V3 is fixed at 5V. The input voltage V1 = Vb is fixed at 1V. And what actually varied in DC sweep is the emitter voltage Ve. So this causes the Vbe to vary between 300mV to 900mV as follows:

enter image description here

To see the dynamic input resistance the green plot is D(V(Vb))/D(I(V1)); and for the output resistance(seen as shown in the right arrow) it is D(V(Ve))/D(I(V2)).

Is this way of plotting correct?
The green plot is almost zero regardless of Vbe. Is that expected?

And here below is if I don't use derivatives:

enter image description here

I'm confused which plots really represents the input output resistances.

Best Answer

I use this circuit:

enter image description here

And \$\large r_{e} = \frac{d(V_{BE})}{d(I_E)} \approx \frac{V_T}{I_E} \approx\frac{25.86492 \textrm{mV}}{I_E}\$ plot at \$27^{\circ}C\$

enter image description here

And \$\large r_{\pi}= \frac{d(V_{BE})}{d(I_B)} \approx (\beta +1)r_e\$ enter image description here