Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0Ω resistors don't work #39

Open
gunar opened this issue Jan 27, 2016 · 1 comment
Open

0Ω resistors don't work #39

gunar opened this issue Jan 27, 2016 · 1 comment
Labels

Comments

@gunar
Copy link

gunar commented Jan 27, 2016

IMHO they should act like simple wires.

This project looks awesome! Kudos! :D

@ThomWright
Copy link
Member

Thanks!

Yes, they should.

Unfortunately the implementation is a bit more complicated than that. The circuit is modelled in terms of conductance, which is the inverse of resistance. Calculating the inverse of 0Ω means a division by zero. For this reason, wires are modelled as zero-valued voltage sources, rather than 0Ω resistors.

I'll need to either:

  1. not allow users to set resistors to 0Ω
  2. allow them, but put in a special case for 0Ω

I tend to use this as a reference. It seems he chose option 1. I think option 2 is better from a UX point of view though, users kind of just expect this to work.

@ThomWright ThomWright added the bug label Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants