circuitjs1 icon indicating copy to clipboard operation
circuitjs1 copied to clipboard

Feature Request: Capacitor and Inductor ESR values

Open K4czu5 opened this issue 6 years ago • 5 comments

Could you add ESR factor to capacitor and inductor? It would be helpful in more advanced schematics where placing resistor and other component is inconvenient.

Thanks in advance.

K4czu5 avatar Apr 08 '19 23:04 K4czu5

Equivalent series resistance? That probably wouldn't be that hard. Adding a small default series resistance to all capacitors and inductors might solve some other issues, too (like capacitor loops, etc).

pfalstad avatar Apr 09 '19 21:04 pfalstad

Yes, that's it. Thank you, very good work, keep it up

K4czu5 avatar Apr 10 '19 13:04 K4czu5

Please add a few different capacitor parameters:

Type:

Aluminium Electrolytic Tantalum Ceramic Polyester (aka Mylar) Polypropylene Custom

There is usually also a small series inductance and a large resistance across the plates, which varies with applied type. I find myself always adding these things manually. Custom is just where you can set ESR and ESI directly etc.

Exaeta avatar Apr 30 '19 20:04 Exaeta

I'd guess @Exaeta is right and a bit of series inductance ought to be closer to reality. A capacitor being a big sheet of metal internally ought to have effectively zero DC resistance and the entire illusion of resistance has to be electromagnetic effects.

I know that a datasheet for most decent capacitors specifies the frequency for which an "ESR" is valid.

Edit: but inductors are really nasty at the moment and tend to lock up the sim indefinitely while the halting problem solver churns. That needs either vast improvement or a timeout or I wouldn't want inductors all over the place.

Edit2: Bleh and unstoppable oscillation all over. Duh who'd have seen that coming?

ormaaj avatar Jun 05 '19 12:06 ormaaj

@ormaaj The series inductance is a lot lower than you might think, but it is there. There's a lot more resistance.

Also I'd love to see inductors become less laggy. :) Trying to solve them based on energy-in energy-out and conservation of energy might give a close enough approximation that you don't need complex solvers. They have a DC bias magnetization and you can approximate them linearly.

Exaeta avatar Jun 06 '19 18:06 Exaeta