sharpie7 / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
2.29k stars 633 forks source link

Voltage not capped #723

Closed danielkucera closed 2 years ago

danielkucera commented 2 years ago

Is it me lacking understanding or is there something wrong? Why is the voltage on 10k resistor going to 8V when there is a diode across it? https://tinyurl.com/y958ogeq

pfalstad commented 2 years ago

Yes that diode is acting strange. It seems to have a series resistance of 12 ohms, but that isn't showing up when you try to edit the model. I'm not sure how that happened.

pfalstad commented 2 years ago

Looks like if you set the diode model on a diode to 1N5712 and then click "Create Simple Model" and then click OK, it will actually create a broken diode model with a series resistance of 12 ohms.

To create a simple model that works, you have to select "default" from the model list first, before clicking "Create Simple Model".

pfalstad commented 2 years ago

This is fixed so it won't be an issue in the future. To get this example to work you need to edit the broken diode model and then click "OK" without changing anything.