The thing with randomly generating molecules is unlike with faces or cats, there is the good chance that a real molecule is generated. Unless they screen the molecule against a database and exclude matches?
Either they do something clever to exclude real molecules, my understanding of chemistry is too limited (100% possible), or it's more like "this molecule might not exist"...
There appear to be several repositories of this format. Maybe they just randomly generate until they find one with a hash that doesn't exist? (Though it's not clear to me how much order of the lines in the format matters).
More likely it’s not stable or no way to synthesize it. Complex molecules have internal “stress” that needs to be weaker than the individual bonds. Making explosives is often maximizing that stress while still making a viable molecule, kind of like a mouse trap.
Nah. These are all predominantly branched and/or cyclic carbon chains, with a few heteroatoms scattered in for effect. They probably burn well, they might smell nasty, but they are not going to be explosive. Explosives (or "energetic materials" as they are known in the trade) are generally all about stuffing as many nitrogen and oxygen atoms as possible into your molecule; take TriNitroToluene as an example, it has 7 carbons, 3 nitrogens and 6 oxygens, and that's fairly mild.
What these structures remind me most of is what you would find in a sour heavy crude oil. In fact, I can guarantee the person who named this website has never looked at high resolution mass spectroscopy analysis (like an FTICR-MS) of any type of petroleum, or they would have named it "this chemical is probably being pumped out of the ground right now".
Yes, practically this means shoving as many nitro groups together. But what makes nitro groups explosive to begin with? From what I remember, the large electron shells of the oxygen atoms repel each other, increasing the bond N-O-N angle by a few degrees. It's very easy to break these stressed bonds, and oxidize another carbon compound with the liberated oxygen, creating CO2 gas (the explosive bit).
Some of the most powerful explosives are made by attaching nitro groups to stressed ring or cage structures.
Nothing that has 14 nitrogen atoms to only 2 other atoms in it can be considered a trap. It is bound to be exciting:) (see? "bound", haha, just barely)
Yeah, you are right that it's very easy to break apart nitro groups, but it's not much to do with the (O-N-O) bond angle. The bonds themselves in -NO2 groups are very weak, because nitrogen doesn't provide enough bonds to make things stable. Remember oxygen wants to "hold on with two hands" as we said in high school chemistry, that is to make a double bond or two single bonds. In NO2 each oxygen only gets one and a half bond (quantum mechanically it is in a superposition between having single bond to the first oxygen and double bond to the second, and vice versa). So this part becomes electronegative. Nitrogen, on the other hand, wants to have three bonds in total, but is forced to have four: 2x 1.5 to the oxygens, and one to the rest of the molecule. So this part becomes electropositive. Chemists will speak here of a resonance structure, which you can imagine is something that it is quite easy to excite.
When the nitro group breaks apart, the nitrogen finds another nitrogen from another NO2 and forms N2 gas, which is highly stable due to its triple bond, so this part of the reaction releases a lot of energy and produces a lot of gas, and is very fast since it does not depend on any other sub-reactions. And stuffing lots of just nitrogen (without oxygen) into a molecule is in itself a way to make it very explosive - see azidotetrazolate salts.
In NO2 decomposition, the oxygen then goes on to find carbon to make CO2, and hydrogen to make H2O, releasing more energy and producing more gas. But this first requires breaking down the relatively stable bonds in the hydrocarbon, so it actually consumes energy from the NO2 decompostion, before it releases more energy than it consumed.
Then stoichiometrically you want to ensure that you have enough oxygen for all your carbon and (ideally) hydrogen, or you'll end up producing a lot of "unburnt" stuff which is inefficient. Notice that for each carbon in a linear hydrocarbon chain (-CH2-) you need 1.5 NO2 groups to get a complete reaction into CO2 and H2O. If you only have 1 NO2 group, CO2 will be formed and you will have excess H2 which is not combusted.
Now as you say there are some stressed rings or cages that are hideously sensitive explosives, precisely because the hydrocarbon bonds have also had their stability reduced. But these typically are not practical explosives. For that you want the stuff to be a solid at a wide range of temperatures, you want it to be non-sensitive to friction and impact, and you want it to have a low vapor pressure. These are all details which depend strongly on the internal structure of the molecule.
Also as an aside I believe there's a current trend to generate chemical compounds by creating SMILES strings using BERT which is a cool way to incorporate language and chemistry (An example of a team doing that https://www.cell.com/iscience/fulltext/S2589-0042(21)00237-6)
Are we sure that's the case? I have no idea what the combinatorics are like for molecules of this size. They seem small enough that it would occasionally generate molecules that have existed at some point, but that's based on some really fuzzy intuition.
I tried a few times, and on the second load of the page I got a single hydrogen atom, so I think it's safe to say they aren't excluding things.
There was recently a link, I think on the front page here, to an article about how many chemical compounds there are [1]. Based on that link we're looking at probably trillions to quadrillions of potential structures with atomic weight under 300, which would cover the structures I saw in my few reloads of the page.
Chemistry is wild. For an example close to home, taking table sugar (sucrose, a single type of molecule) and applying heat to caramelize it results in hundreds to thousands of different end products from at least half a dozen qualitatively different classes of chemical reactions.
I never got far enough in chemistry to really figure out if it has explanatory or predictive power.
If you ask a CS grad "What will happen if you run this program?" they should be able to predict it. If they've gone through nand2tetris they can explain it all the way -- compiler, OS, machine language, ALU / registers / bus, logic gates.
If you ask a chemistry grad "What happens when you apply heat to this molecule?" can they predict it? Can you explain it all the way -- from molecules to atoms to electrons to quantum fields?
If we can't predict "Okay this is what will happen if I mix these two substances together," how do we have a good scientific theory? I guess chemistry says we always end up with the same atoms we started with (unless you start to go nuclear by using energetic particles to modify the nucleus), but can we predict which of the zillions of possible rearrangements will actually happen? We know by experiment that H2SO4 is an acid, and that H2SO4 is a "legal" molecule in a way that HSO3 or H5S7O9 are not. Is there a way to figure this out from first principles? Can you figure out by inspecting the chemical formula that H2SO4 will be an acid if you didn't already know that ahead of time? Can you figure out that H2SO4 will be a "legal" molecule but H5S7O9 will not? Can you look at a reaction and tell whether it will "compile" and what it does, the same way you can look at a program and figure out if it will compile and what it does? If you can't, why not?
And what use is a theory of chemistry that can't make concrete predictions? If you just have a list of known substances and reactions, is that even a theory, or is it just experimental data?
> Can you figure out by inspecting the chemical formula that H2SO4 will be an acid if you didn't already know that ahead of time?
Strictly speaking, the answer is "no", because it's not the formula that matters but the shape. And something like C₆H₁₂O₆ doesn't tell you how all of the bonds hook up--are we looking at esters, alcohols, ketones, aldehydes, carboxylic acids? There's several distinct molecules that have that formula, and those distinctions matter for chemistry.
But given the actual structure of the compound? Yeah, we can compute a lot of stuff. That list of words that probably meant nothing to you--that's different kinds of functional groups, and functional groups tend to react in very similar ways when given several compounds. And organic compound is basically all about identifying these groups and the ways in which they react.
> Is there a way to figure this out from first principles?
"First principles" in this case would basically be a large dose of molecular orbital theory, derived from quantum mechanics. And yes, we can develop a good deal of explanations by recourse to molecular orbital--for example, why aromatic and antiaromatic compounds exist, despite the fact they superficially look like the same structure.
> Can you look at a reaction and tell whether it will "compile" and what it does, the same way you can look at a program and figure out if it will compile and what it does? If you can't, why not?
Typically, the difficulty is in figuring out how selective reactions are. If you've got a molecule with a couple different C=C bonds in it, and you're doing an addition reaction across those bonds, predicting how many of those bonds, and which ones specifically, change in the reaction is more of a crapshoot. So it's not foolproof, but it is generally reliable enough at this point that organic synthesis has moved from "here's a Nobel Prize for figuring how to synthesize vitamin B12" to "congratulations on being hired; why don't you synthesize this molecule while we ramp you up on the job."
Computational chemistry answers some of these questions.
When you look at just a molecule by itself “what happens if you apply heat” is somewhat simple. Covalent bonds just break because the molecule is vibrating too much - think of a covalent bond as a flexible strut, if you put too much pressure on it, it snaps. This can result in the temporary formation of unstable molecules that then recombine. You could predict which particular bonds in a molecule are unstable based on the total structure, angles, electronegativity, polarity, etc.
But of course those small unstable molecules can further breakdown, react with each other, and react with the parent molecule to form new stuff. So basically the parent molecule is part of some huge “power set” of potential molecules all interacting with each other.