I would like to fully charge then discharge the capacitor using the two switches . Charge for 50s then discharge for another 50s seconds. Please help me. I am not getting the capacitor to discharge pass half the source voltage.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Thank you so much crutschow. Im extremely new to LTspice . I am a first year mechanical engineering student so I' am also very new to electronic circuit building.Here you go.
In your original circuit V2 never turned S2 off so it was on at the same time as S1, drawing kA of current from V1.
I changed the V2 pulse sequence so S2 turns off when S1 turns on, and you get the expected decay of the capacitor to 0V.
Why did use a different switch model for S1 and S2?
View attachment 124391
thank you very much for this similar circuit build but I was trying to replicate the result from circuit built on spice that used the open and closed switch feature which LT spice does not have.
Why do you say that?circuit built on spice that used the open and closed switch feature which LT spice does not have.
Okay.LTspice switches are voltage and current controlled.
Yes, you can use the same model for both. Just define the parameters to be appropriate for your applicationWill the switch model I used on the circuit I uploaded work in every case for opening and closing switches ?
Including the switch models?The circuit was given by the lecturer at my university