0
\$\begingroup\$

enter image description here Here I am trying to solve the circuit and from my calculation, I got, I(t)=3e^(-2t) - 3e^(-3t) and Vc(t)=12-18e^(-2t)+12e^(-3t) When Initial conditions are; I(0-)=0A and Vc(0-)=6V From my assumption, current will flow through the circuit until the voltage across the capacitor is 12V so V(∞)=12V and I(∞)=0A. but when I simulate the circuit in MATLAB, I got something different...

enter image description here

enter image description here

1st graph is for current and second graph is for voltage across capacitor. Here both current and voltage are zero in steady state. How is it possible that steady state voltage across capacitor is zero? Also the current graph is inverse of what I theoretically calculated. Where am I wrong? Please help me out.

\$\endgroup\$
3
  • \$\begingroup\$ Why is graph #1 oscillating, but graph #2 is not? \$\endgroup\$
    – eSurfsnake
    Feb 23 at 18:56
  • \$\begingroup\$ Your simulation is definitely wrong. \$\endgroup\$
    – Andy aka
    Feb 23 at 18:56
  • \$\begingroup\$ So are my mathematical assumption right? The steady state voltage across capacitor would be 12V? \$\endgroup\$ Feb 23 at 19:07
2
\$\begingroup\$

Your 1st graph has something like pixel aliasing ripple but correct 0.444 A peak

Your 2nd has the probe location for 12V-Vc =0 steadystate so not Vc.

My sim

\$\endgroup\$
2
  • \$\begingroup\$ But why the 1st current graph is inverse of what I calculated? \$\endgroup\$ Feb 23 at 19:41
  • \$\begingroup\$ I can't see what you did, but it just seems to be a reverse component orientation or 0V reference is somehow the reason. If I swap the my sim's inductor orientation, I can get a similar result. But clearly you expect by schematic convention it to be positive. \$\endgroup\$ Feb 23 at 20:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.