1111from libecalc .common .serializable_chart import ChartDTO
1212from libecalc .domain .component_validation_error import ProcessChartTypeValidationException
1313from libecalc .domain .process .compressor .core .results import CompressorTrainResultSingleTimeStep
14- from libecalc .domain .process .compressor .core .train .base import CompressorTrainModel
14+ from libecalc .domain .process .compressor .core .train .compressor_train_common_shaft import CompressorTrainCommonShaft
1515from libecalc .domain .process .compressor .core .train .stage import CompressorTrainStage
1616from libecalc .domain .process .compressor .core .train .train_evaluation_input import CompressorTrainEvaluationInput
1717from libecalc .domain .process .compressor .core .train .types import FluidStreamObjectForMultipleStreams
2626from libecalc .domain .process .value_objects .fluid_stream .fluid_model import FluidModel
2727
2828
29- class VariableSpeedCompressorTrainCommonShaftMultipleStreamsAndPressures ( CompressorTrainModel ):
29+ class CompressorTrainCommonShaftMultipleStreamsAndPressures ( CompressorTrainCommonShaft ):
3030 """An advanced model of a compressor train with variable speed, with the possibility of modelling additional
3131 streams going into or leaving the compressor train between the compressor train stages.
3232
@@ -768,7 +768,7 @@ def find_and_calculate_for_compressor_train_with_two_pressure_requirements(
768768
769769
770770def split_rates_on_stage_number (
771- compressor_train : VariableSpeedCompressorTrainCommonShaftMultipleStreamsAndPressures ,
771+ compressor_train : CompressorTrainCommonShaftMultipleStreamsAndPressures ,
772772 rates_per_stream : list [float ],
773773 stage_number : int ,
774774) -> tuple [list [float ], list [float ]]:
@@ -806,13 +806,13 @@ def split_rates_on_stage_number(
806806
807807
808808def split_train_on_stage_number (
809- compressor_train : VariableSpeedCompressorTrainCommonShaftMultipleStreamsAndPressures ,
809+ compressor_train : CompressorTrainCommonShaftMultipleStreamsAndPressures ,
810810 stage_number : int ,
811811 pressure_control_first_part : FixedSpeedPressureControl | None = None ,
812812 pressure_control_last_part : FixedSpeedPressureControl | None = None ,
813813) -> tuple [
814- VariableSpeedCompressorTrainCommonShaftMultipleStreamsAndPressures ,
815- VariableSpeedCompressorTrainCommonShaftMultipleStreamsAndPressures ,
814+ CompressorTrainCommonShaftMultipleStreamsAndPressures ,
815+ CompressorTrainCommonShaftMultipleStreamsAndPressures ,
816816]:
817817 """
818818 Splits a variable speed compressor train into two sub-trains at the specified stage number.
@@ -838,7 +838,7 @@ def split_train_on_stage_number(
838838 # First part uses the main fluid factory (already made from first stream)
839839 fluid_factory_first_part = compressor_train .fluid_factory
840840
841- compressor_train_first_part = VariableSpeedCompressorTrainCommonShaftMultipleStreamsAndPressures (
841+ compressor_train_first_part = CompressorTrainCommonShaftMultipleStreamsAndPressures (
842842 streams = streams_first_part ,
843843 fluid_factory = fluid_factory_first_part ,
844844 energy_usage_adjustment_constant = compressor_train .energy_usage_adjustment_constant ,
@@ -872,7 +872,7 @@ def split_train_on_stage_number(
872872 # This will be updated at runtime after the fluid model (composition) is changed
873873 fluid_factory_last_part = compressor_train .fluid_factory
874874
875- compressor_train_last_part = VariableSpeedCompressorTrainCommonShaftMultipleStreamsAndPressures (
875+ compressor_train_last_part = CompressorTrainCommonShaftMultipleStreamsAndPressures (
876876 streams = streams_last_part ,
877877 fluid_factory = fluid_factory_last_part ,
878878 energy_usage_adjustment_constant = compressor_train .energy_usage_adjustment_constant ,
0 commit comments