> Where did the comets get the water they impacted on earth?
Hydrogen comes from primordial nucleosynthesis [1] and makes up most of the interstellar medium [2]. Oxygen is produced when neutron stars collide and stars explode [3] as well as when some stars burn [4]. These freely combined in the gas disk from which our solar system formed, condensing into planets, moons, comets and other things [5].
There is a "frost line" in the middle of the asteroid belt where you see rocky objects closer and icy objects further. The reason is that closer the Sun has enough energy to sublimate the icy objects into a comet with a tail, where the tail is the icy material being blown off into space. Over billions of years that results in objects with ice-free rocky surfaces inside the frost line, and big, gaseous, volatile-rich outer solar system objects.
So at the time of the formation of the solar system, the whole area was a big gaseous cloud of supernova debris with lots of ice. The ignition of the sun started the frost line, and pushed volatiles out of the inner solar system. However some had already been trapped in the formation of the planets, and rose to the surface as they cooled. That's where Earth's ocean came from, and we know Mars and Venus had oceans too. Presumably also Mercury, although I'm sure that was short-lived.
So yes, it's all from cometary material. But then ALL of the Earth is from cometary material, and the oceans only make up a small amount of the Earth's total mass.
Earth likely had some water during early creation (accretion) but the best theory on how the Moon formed is that a Mars sized object hit the early Earth at the end of accretion. This blasted much of the Earth's rock part (mantle) and any water it might have had into orbit. The rock part quickly fell back to Earth and the rest condensed and collapsed to form the moon. The water and other volatilizes that were on Earth were blown away by the solar wind at that time. The surface of the Earth and Moon would have been boiling lava at this point and had to accumulate water from new impacts of comets and icy asteroids.
The water on Earth may seem to be a lot to us on the surface but it is only about 0.02% by mass [1].
There's actually a lot of water in the mantle of the Earth. There's something like 3x the current ocean volume trapped in the mantle, and there are theories that pressure differentials cause this water to escape as gaseous water escapes from the atmosphere. It would explain why the ocean happens to be approximately the height of the continental shelf, and always has been. Under this theory the water simply emerged as the Earth cooled from the impact. The Moon, on the other hand, would be missing this water as the debris was mostly stripped of water content as it accreted.
Stars produce oxygen (along with all elements up to iron) during nuclear fusion. If the star is big (several times bigger than our sun), it eventually explodes and the oxygen then winds up in interstellar gas and dust. The oxygen reacts with hydrogen to make water. Eventually you wind up with a lot of dirty snowballs floating around (comets).
Oxygen is pretty common and hydrogen is everywhere, so water (as ice) is not scarce in the universe. The only place where water is uncommon is near a star, like us, where the water boils off into space unless a planet has enough gravity to hold it in.
Under what circumstances does one need to have in order to make them combine into water, organically? (Meaning without any device or machine, assume you have two big clouds of each element floating in space - if they collide, do the naturally just form into water molecules?)
At reasonable temperatures, yes, the clouds turn into water and release energy, hydrogen burns. Water is entropically preferred as a lower energy state than separate atoms/molecules because of lower enthalpy at reasonable temperatures. Depending on density and ignition sources the reaction rate may vary, but it doesn't have to explode in a ms when there is a billion years available.
That's not what "entropically preferred" means. If something is a lower-energy state, it's energetically preferred, but may or may not be entropically preferred. Water is NOT - entropy would prefer simpler molecules over more structured molecules.
I think the concept you're thinking of is free energy, which determines the final destination of a process. The equation relating these things is (change in free energy) = (change in energy) - temperature × (change in entropy). Entropy only becomes the dominant component when temperature is high. And, as expected, water molecules dissociate at high temperature.
No, since this was chemistry, I was talking about enthalpy of an exothermic reaction (negative enthalpy), and interstellar space is pretty close to constant pressure, but not constant entropy for Gibbs free energy.
In any case:
dH=TdS + Vdp note dp is small in space but V can be large and dS is the change in entropy.
...and enthalpy of ideal (interstellar H & O) gases does not depend on pressure, unlike entropy and Gibbs energy. If you really just mean free energy U, then they are basically the same thing in open space (but not in a plasma), a distinction without difference.
For further pedantics I recommend Wikipedia, since I doubt we are helping anyone else.
They randomly form and are destroyed over time due to collisions at various energies. It's also more common for ions to form in space which makes such simple chemical reactions easier.
Yes, oxygen and hydrogen mixed together will eventually react to form water. To react, atoms or molecules simply need to collide hard enough to overcome their initial repulsion and form bonds. In space it is a slow process, because the pressure and temperature are both low - this means the atoms rarely hit each other, and when they hit, they don't hit very hard.
H2O is probably the second, third, or fourth most common molecule in the observable universe. H2 is definitely the most common, and all you need is a good explosion from a CNO-cycle star (viz. heavier than 1.3 solar masses) to liberate all those fusion-catalyzing oxygen nuclei, and they readily combine with any H2 they may meet.
So in a stellar accretion disc, much of the water will end up inside the new star, and dissociate, but quite a lot of it will gather in the planets, moons, and comets. Europa, for example, has about 2 or 3 Earth-oceans worth of water. Uranus and Neptune likely have solid cores composed mainly of ices that include water ice.
Water is formed naturally when the oxygen created by the fusion process in stars combines with the hydrogen from those same stars, often after a supernova explosion.
Water is fairly abundant in the universe. As are alcohols.