Complex sentence: The heat is supplied externally to a closed loop, which in steam engines contains water and steam.
Split into simpler sentences: The heat is supplied externally to a closed loop. This, in steam engines contains water and steam.