From b06b96c69a126b8da3a1b9ac9710eee73710c2bf Mon Sep 17 00:00:00 2001 From: olelod Date: Tue, 19 Sep 2023 14:34:42 +0200 Subject: [PATCH] chore: warn user about full recirculation of fluids in a compressor stage in a multiple streams and pressures compressor train --- ...ssor_train_common_shaft_multiple_streams_and_pressures.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libecalc/core/models/compressor/train/variable_speed_compressor_train_common_shaft_multiple_streams_and_pressures.py b/src/libecalc/core/models/compressor/train/variable_speed_compressor_train_common_shaft_multiple_streams_and_pressures.py index 80ba50cfa5..e3994c7488 100644 --- a/src/libecalc/core/models/compressor/train/variable_speed_compressor_train_common_shaft_multiple_streams_and_pressures.py +++ b/src/libecalc/core/models/compressor/train/variable_speed_compressor_train_common_shaft_multiple_streams_and_pressures.py @@ -872,6 +872,11 @@ def calculate_compressor_train_given_rate_ps_speed( stage_number=stage_number ) if fluid_to_recirculate: + logger.warning( + f"For stage number {stage_number}, there is no fluid entering the stage at at this time step. " + f"The compressor is only recirculating fluid. Standard rates are " + f"{std_rates_std_m3_per_day_per_stream}." + ) inlet_stream = fluid_to_recirculate else: raise ValueError(