This is a proof of concept for temperature controls in factorio. If you need to cool down a fluid, in this case, it's a very niche case in pyanodons, this is how I got it to work, you have to do some calculations in order to get it to work out correctly, temperatures add and average out, no need to understand thermodynamics. This process attempts to do a two stage cooling process that ultimately increases the amount of cooling power of the lower temperature fluid by a significant amount than just mixing them straightforwardly, the middle temperature (between the cold and the hot) must be higher than the cold. So, on the top is an input fluid at a high temperature, the bottom right in an input fluid that is used to cool it. In the middle is a secondary stage that (in this case) cools the 4k K neutrons into 1k K neutrons, *using another pre-requisite hotter reservoir that must be made the inefficient way, called bootstrapping. The bootstrapped 200 K neutrons are the desired product, on the bottom left. So it overflows into another reservoir.
Mechanistically, this works by using SR latches in tandem, with two stages each, top fluid in, then bottom fluid in, latch and output into another buffer. There are two such buffers, one for 1k K neutrons and 200 K neutrons, hence two staged cooling process. The latch currently must go to zero, which slows it, but I think you could fiddle around with some of the numbers and have it be slightly less efficient at cooling to make it go exponentially faster because pumps get slow near zero fluid. The second stage cooling uses the variable input lower temperature neutrons (in py produced by nuclear reprocessing). This should get around a 1:30 ratio for cooling boost from just straightforward mixing, it is definittely worth it.
