I am trying to build a non-ideal voltage source with a drooping characteristic for increasing current that is drawn from the source.
So far my circuit consists of a voltage source in series with a resistance (which is the internal resistance) supplying a fixed capacitor load.
I now want to add a current source which keeps sinking increasing amount of currents from voltage source.
Is there any way to do this?
I want to accomplish this :
Code:I(n1,n)<+ dc+ 0.1 ;
i.e the current source should draw 0.1A more current for each simulation time.
How do I accomplish this? The for loop doesn't work