phetsims / capacitor-lab-basics

"Capacitor Lab: Basics" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
6 stars 4 forks source link

User suggestion: conventional current direction #233

Open oliver-phet opened 6 years ago

oliver-phet commented 6 years ago

Can I suggest that you have the current go in the conventional direction, not the direction that the electrons flow? Or maybe allow the user to choose... Current: flow of electrons or conventional positive current.

arouinfar commented 6 years ago

I would be in favor of this change, as it would add a bit more flexibility to the sim, but doesn't seem overly complicated. We could add a radio group for electrons/conventional underneath the current direction checkbox, similar to our approach in CCK.

image

Here's a comparison of the electron and conventional current direction arrows, with the conventional current arrows being a semi-transparent RED_COLORBLIND. image

If we decide to make this change, it seems appropriate to tack onto #234. @ariel-phet what do you think?

ariel-phet commented 6 years ago

@Denz1994 is going to start working on this issue, and will consult @arouinfar as needed

arouinfar commented 6 years ago

@Denz1994 I realize the current direction isn't ready for review, but while reviewing #234, I noticed that the current direction is broken. The top and bottom arrow both point in the same direction, rather than completing the circuit.

master (top arrow correct):

screen shot 2018-07-24 at 2 50 05 pm

published version:

screen shot 2018-07-24 at 2 55 44 pm
Denz1994 commented 6 years ago

Thanks for the catch @arouinfar. Commit https://github.com/phetsims/capacitor-lab-basics/commit/85dbf1293ba206068ac5a051c074ab4e86647514 should have corrected the same-sided orientation you mentioned above.

Can you review the current status of master to assure the behavior is correct with the radio button selection?

Also do we only want these options on the lightBulbScreen?

arouinfar commented 6 years ago

@Denz1994 the behavior is now for correct for both current direction options.

Also do we only want these options on the lightBulbScreen?

No, it should be on both screens. Thanks for checking!

arouinfar commented 6 years ago

@Denz1994, while I'm reviewing things, here are some pixel polishing suggestions. I realize these may be things you simply haven't gotten to yet, but I just want to make sure we're on the same page.

Denz1994 commented 6 years ago

@arouinfar Please review master for the above changes, especially the behavior for switching current direction. Thanks.

arouinfar commented 6 years ago

@Denz1994 everything's looking good!

Denz1994 commented 6 years ago

Thanks, @arouinfar closing this issue.

arouinfar commented 6 years ago

@Denz1994 since this feature isn't yet deployed (see #237), I'm going to reopen but leave unassigned.

Denz1994 commented 6 years ago

The panel width (and the toolbox on Light Bulb) should probably be 10% wider. It's looking a little crowded.

I added an alignGroup option for the right side panels. This should make i18n compatibility a lot smoother. @arouinfar Please confirm the panel sizes still look good on master.

arouinfar commented 6 years ago

@Denz1994 the wider panel is nice, but there's far too much padding to the left of the checkboxes. Perhaps the strings have been accidentally centered? image

The left padding in the published version is preferred: image

arouinfar commented 6 years ago

@Denz1994 I'm also noticing that the panel width is inconsistent across screens.

Capacitance: image

Light Bulb: image

Denz1994 commented 6 years ago

@arouinfar Please review master for above changes.

arouinfar commented 6 years ago

Looks great!

Denz1994 commented 6 years ago

Great, this should make i18n a lot easier.

arouinfar commented 6 years ago

@Denz1994 I've noticed that the current direction doesn't revert to Electrons on reset all, as it should. This is present in master and the latest dev.

Denz1994 commented 6 years ago

@arouinfar Good catch. Solution pending.

arouinfar commented 6 years ago

Great, @Denz1994! Can you publish a new dev version when it's addressed? I discovered the bug in #235, and it would be nice to have an updated version for primer recording.

Denz1994 commented 6 years ago

@arouinfar Please review master for above reset correction. Once reassigned to me I will push a dev version.

arouinfar commented 6 years ago

Looks good @Denz1994!

Denz1994 commented 6 years ago

Dev version pushed here. @arouinfar

arouinfar commented 6 years ago

Thanks!

arouinfar commented 4 years ago

Not quite a suggestion, but a user emailed phethelp in regards to the current direction, and the solution would be the conventional current representation.

In reference to the capacitor labs, while charging/discharging the capacitor an arrow displays indicating the current. I read the Help document and it states that arrow represents the direction of the current but not the magnitude. I have attached a screenshot of the capacitor discharging through the light bulb. However, it looks to me like the arrow is representing the direction of the electron flow, which is the opposite direction of the electric current. The classical electric current assumes positive charge carriers (incorrectly), so the direction of the current flow should be clockwise through this circuit, while the electrons flow counterclockwise. I think the simulation is intending to show the electron flow, rather than the current because there is also a negative sign on the arrow. Am I correct in my assumption that the simulation is showing the direction of the electrons? If so, why is called the current?

I replied to the user to let them know we are working on a conventional current representation, and that the sim will eventually be republished with the feature.