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

Resonance bond rendering differs from Java/PubChem #207

Open
arouinfar opened this issue Aug 26, 2020 · 6 comments
Open

Resonance bond rendering differs from Java/PubChem #207

arouinfar opened this issue Aug 26, 2020 · 6 comments

Comments

@arouinfar
Copy link
Contributor

For phetsims/qa#538 and possibly related to #151.

Occasionally, a double bond is rendered as a single bond in the ball-and-stick representation. Here are a few instances:

Molecule Sim PubChem 3D
Phosgene image image
1,1-dicholoroethylene/vinylidene chloride Screen Shot 2020-08-26 at 1 23 24 PM image
acetic acid methyl ester/methyl acetate Screen Shot 2020-08-26 at 2 11 16 PM image

These structures are regular neutral molecules (not ions or radicals) so I'm not sure why the double bonds are incorrectly rendered.

@arouinfar
Copy link
Contributor Author

@Denz1994 these structures are correctly rendered in the Java sim.
image
image
image

@arouinfar
Copy link
Contributor Author

@Denz1994 I tested several older dev versions, and it doesn't appear to be a new issue. It existed in dev.50 (post- #151) and dev.40 (pre- #151).

@arouinfar
Copy link
Contributor Author

I think I've figured it out. These molecules have resonance bonding, which means there is a delocalized electron. The most probable location for that electron would be where PubChem shows a double bond.

image

image

A classic example of a molecule with resonance bonding is benzene. PubChem shows double bonds in its 3D rendering
image image

I no longer think this is a bug, so I will close this issue and add a note about resonance structures to the Teacher Tips.

@arouinfar
Copy link
Contributor Author

On second thought, I am going to reopen and defer. It would be nice to understand the difference between the Java and HTML5 behavior, but it should not impact publication.

@arouinfar arouinfar reopened this Aug 27, 2020
@arouinfar arouinfar changed the title Bond order is sometimes displayed incorrectly Resonance bond rendering differs from Java/PubChem Aug 27, 2020
@Denz1994 Denz1994 removed their assignment Sep 16, 2020
@oliver-phet
Copy link

A user report this behavior:

3d image of propionic acid does not show double bond between C and O in carboxyl group
image
image

@oliver-phet
Copy link

Another user reported:

Playground mode - Acetone does not show the double bond between oxygen and carbon.

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

4 participants