A method is provided. The method comprises: identifying, by a
processing device, first temperature data indicative of a
temperature difference between a bulk fluid at a first inlet of a
heat exchanger and the bulk fluid at a first outlet of the
heat exchanger, fluidly coupled to the first inlet by one or more fluid channels of the
heat exchanger, wherein the first outlet of the heat exchanger is fluidly coupled to a high-pressure inlet of a
pressure exchanger (PX); determining, based on the first temperature data, a target adjustment of a first valve fluidly coupled to the first outlet of the heat exchanger and to a secondary fluid inlet of the heat exchanger; and causing, based on the target adjustment, actuation of the first valve.