I’m running a transient simulation where a resistor changes linearly with time (using a PWL profile), while the applied voltage source remains constant.
I was expecting a linear variation but the waveform looks different.
I’m running a transient simulation where a resistor changes linearly with time (using a PWL profile), while the applied voltage source remains constant.
I was expecting a linear variation but the waveform looks different.
From R=V/I, we get I=V/R. If you linearly change R, since it is in the denominator, you should not expect I to change linearly (assuming voltage V is constant, I is inversely proportional to R). Only a linear change in the numerator produces a linear change in the result.
If you want to verify resistance, a direct way is to use a 1 A current source.
verify-variable-R.qsch (2.3 KB)
Thanks for the explanation! What a basic conceptual mistake on my part