In this lesson we're going to do a transient analysis. But this time around, it's D with a RC secret. So that's great a new schematic and then but a resistor as key, a capacitor as S key, ground voltage SOS as key ground put the wire to connect all elements ask and choose the element values like Dan Keeler on one Meeker products And then we put labels DC for the voltage of capacitor and the in for input voltage. And then let's choose here. Let's say five. We're going to simulate a simulation comment and just draw 100 milliseconds.
Click OK. And click somewhere. Okay, now click the running and we got one default plot pane. You can click it here and there gets straight, exactly five volts. Why does it happens? Well, that's because the way we're configuring our voltage SOS means that it's been offering for So it's always it's always been offering five volts. There was no evidence like turning all.
So, what can we do? We can put a initial condition for the voltage in the capacitor. How do we do this? We can right double click it to expand. And then we can click.op and but dot i see v paranthesis a VC equals zero. And that's it here.
It is to mean that they need to have value of the voltage of capacitor must be zero. So let's simulate and see the results. And now we see the voltage rising from zero treats final value. We can double click here and see it's in full scale. We see that he nearly 60 milliseconds, the capacitor voltage arrives or reaches its final value of five volts. But what if the voltage of the voltage sources would remain to zero and gradually come back to five and zero and so on?
We can simulate this situation. How do we do this? We can Instead of john just clicking here and but five votes, now we're going to advanced and we choose pose. And then we can, but the corporation of the pose we chose here, like initial initial voltage sr, V on five. And then in order for it to resemble square wave, we've got 20 mili have on time and very out of 40 million. And then number of cycles, we can but zero.
The other three values we can left it blank. So the froggen choses the different color okay. And then we can move this. So, it doesn't disturb or righteous here the capacitor rather. And then we can run the running man. receipt, charging, discharging charge discharge.
But what's happening with the input voltage, we can click here, add another board pain and click here and quick v one v. What happens here? During this period, the voltage of the capacitor is increasing eg increases, as by means of first are the dynamics which is essentially has a spawn a show her activist. And then for the discharge, the discharge is pretty much the same but in reverse direction. It's follows exponential. So when I show her and then it repeats all over again. So what can we lots more here we can add another plus pain and a lot of the currents in the capacitor so we can click here and go to the capacitor and wait for this symbol here and click so we're going to see these periodic waveform what happens the currents in the capacitor off charging the capacitor is proportional to the derivative of the voltage that defines a capacitor.
Capacitor is john is way. Close to works this way. So we have big of derivative, negative think of the derivative and so on. So, in this lesson, we're, we've seen a transit analysis dealing with nurses secrets, which is a secret where some voltages and currents do vary all the time and I wait to the next lesson.