-
Notifications
You must be signed in to change notification settings - Fork 7
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
Unsure if bonding should be possible #198
Comments
Clarification, I've seen this in a large number of instances, the above is just one example. |
@Denz1994 I think this is another permutation of #148. There seems to be some order-dependence for how atoms are added to the molecule. My initial thought was that the repulsion might be related to the atomic radii, but that doesn't seem to be the case, since I can build structures like this: Looking at OtherMoleculesData.js, I see hundreds of molecules containing multiple chlorine and fluorine atoms, so I don't think we're necessarily building unnamed structures. Even if they are unnamed, I would think they should be legal so long as we don't break basic bond order rules (C can bond to 4 things max, H can only bond to 1 thing, etc.) @Denz1994 can you investigate? |
TLDR: We don't have a molecule in our data set that uses C4Cl3F4 as a sub-component, so it is considered an invalid molecule. If this was order-dependent as described in #148, then there should be a build order that will produce the initial molecule posted by @KatieWoe (with Chlorine in place of the Hydrogen). I've tried numerous amounts of permutations and can't build that molecule attempted in the original post. So for that reason, I'll agree with @KatieWoe that this isn't order-dependent. The fact that this can't be built in the java version, tells me that this has something to do with the actual data of the attempted molecule. The molecule that @KatieWoe was attempting to complete was C4Cl3F4. For starters, PubChem doesn't have an entry for that molecule, but let's assume we were attempting to build C4H3Cl3F4. This would be the next possible molecule with 3 Chlorines and the 3 Hydrogens filled out on the remaining leftmost Carbons. Despite C4H3Cl3F4 being a valid entry on PubChem, we don't have C4H3Cl3F4 as an entry in otherMoleculeData.js. If you search in this file for Edit: Bonding the hydrogen works in the original post because it creates C4H1Cl2F4, which is a sub-molecule of |
Okay, more digging with a minor revision... We do have C4H3Cl3F4 entries in our data:
However, it isn't just the molecule elements we are building, it is the position we are bonding the atoms. So in the original post, the atoms are just built in the incorrect arrangement. I'm not too familiar with the comma separation in IUPAC nomenclature. I'm aware it indicates the position or arrangement of parts of the molecule, but I'm not sure if @KatieWoe was building a valid molecule based on the 3 entries above. If that is the case @arouinfar, I don't think there is anything to do for this issue and we can close. |
In summary, the arrangements of the atoms were incorrect @KatieWoe. I'll leave to @arouinfar to close this one. |
Thanks for digging into this @Denz1994. I am fine with closing, but I would like a bit more clarification for the Teacher Tips. I didn't realize that molecules had to be named in the database for their connections to be legal. Does that only occur for the kits on the Playground? For example, I can build this, despite it not being a real molecule: Can you provide some clarification about why the above is legal, but the structures @KatieWoe built in #198 (comment) were not? |
Sure. Your example is legal because it can be used to build The molecule @KatieWoe was trying to build is illegal because it doesn't build into any entry molecule in our data set. This occurs on all screens as well. |
Back to @arouinfar to close. |
Thanks for that explanation @Denz1994! That makes sense to me. I've tagged this issue for the Teacher Tips, so we can go ahead and close it. |
For phetsims/qa#506. There are instances where you are able to bond a hydrogen to something, but other atoms that you would expect to be able to make the same bond (such as fluorine and chlorine) may not be able to. This does not seem to have anything to do with the order of adding atoms, so I don't think it is connected to #148. It also does not seem to be a size issue, since rearranging atoms elsewhere in the molecule will let two large atoms sit next to each other. It also seems to be the case in the Java version. Molecular construction was never my strong suit, so I could very easily be missing something. Feel free to close if that is the case. Examples collected on 3rd scene in 3rd screen, when adding fluorine and chlorine to 4 carbons.
am
The text was updated successfully, but these errors were encountered: