Electronic – Simulate capacitor discharge in Qucs

capacitorqucssimulation

I want to find how long a capacitor takes to discharge from 12 volts to 2 volts using Qucs. I can use a voltmeter to measure the voltage across it when it charges up, but I cannot turn the power source off during simulation.

Suggestions? Thanks

Best Answer

One of the really cool lumped components in Qucs is a time controlled switch. You can specify the initial value as open or closed (see below), as well as a list of times when the switch should change state. Example of how it's used.

Qucs time controlled switch

Actually, the time-controlled switch is really a time-controlled two-state resistor with default values [Ron=0 Ω; Roff=1e12 Ω].

You can choose any value for Ron and Roff. Combined with the list of times when the state changes, this a powerful and easy-to-use time-controlled element in simulations.

Related Topic