Charging or discharging of accumulators with steam