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

Electron gaps with short wires #159

Closed
phet-steele opened this issue Jul 7, 2016 · 3 comments
Closed

Electron gaps with short wires #159

phet-steele opened this issue Jul 7, 2016 · 3 comments

Comments

@phet-steele
Copy link
Contributor

@arouinfar @samreid the quantity of electrons in a wire depends on the length of the wire, and if the wire is short enough, there are no electrons in the wire:
screen shot 2016-07-07 at 10 42 11 am

If a circuit is made with any "short" wires, there are gaps in the electron flow. I made an extreme case below, but more reasonable cases exist:
cckbb10

Seen on OSX 10.11.5 Chrome, for phetsims/tasks/issues/636.

Troubleshooting information:
Name: ‪Circuit Construction Kit: Black Box Study‬
URL: http://www.colorado.edu/physics/phet/dev/html/circuit-construction-kit-black-box-study/1.0.0-dev.18/circuit-construction-kit-black-box-study_en.html
Version: 1.0.0-dev.18 2016-07-05 23:04:10 UTC
Features missing: touch
Flags: pixelRatioScaling
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36
Language: en-US
Window: 1920x1002
Pixel Ratio: 2/1
WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium)
GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)
Vendor: WebKit (WebKit WebGL)
Vertex: attribs: 16 varying: 32 uniform: 1024
Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 16)
Max viewport: 16384x16384
OES_texture_float: true
Dependencies JSON: {"assert":{"sha":"7d27130a","branch":"master"},"axon":{"sha":"83211f20","branch":"master"},"babel":{"sha":"452ce1dc","branch":"master"},"brand":{"sha":"f0b1f7da","branch":"master"},"chipper":{"sha":"531f9047","branch":"master"},"circuit-construction-kit":{"sha":"6c44e1b0","branch":"master"},"circuit-construction-kit-black-box-study":{"sha":"85860b42","branch":"master"},"dot":{"sha":"3628c3ae","branch":"master"},"joist":{"sha":"94bc734c","branch":"master"},"kite":{"sha":"88f0c3a0","branch":"master"},"phet-core":{"sha":"c48bf320","branch":"master"},"phetcommon":{"sha":"35ef94ad","branch":"master"},"scenery":{"sha":"942889ad","branch":"master"},"scenery-phet":{"sha":"d2906d78","branch":"master"},"sherpa":{"sha":"77506dc3","branch":"master"},"sun":{"sha":"c5dbf7cd","branch":"master"},"tandem":{"sha":"a8ac284b","branch":"master"}}

@arouinfar
Copy link
Contributor

Good observation @phet-steele. It looks like this issue is also present in the Java version. Perhaps if we limit wires to have at least one electron (unless their vertices overlap), the problem will be alleviated.

These wires should have at least one electron:
image image image

And these would have none:
imageimageimage

@arouinfar arouinfar removed their assignment Jul 7, 2016
@samreid
Copy link
Member

samreid commented Jul 7, 2016

Fixed above, ready for review in next version.

@phet-steele
Copy link
Contributor Author

This is an acceptable solution 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants