|
1 | 1 | """ |
2 | 2 | Dummy process implementation for testing purposes. |
3 | 3 | """ |
| 4 | +from libecalc.domain.process.process_system.serial_process_system import SerialProcessSystem |
| 5 | + |
4 | 6 | """ |
5 | 7 | Prototyping... |
6 | 8 | """ |
7 | | -from ecalc_neqsim_wrapper import NeqSimFluidService, CacheConfig, NeqsimService, Py4JConfig |
| 9 | +from ecalc_neqsim_wrapper import NeqSimFluidService |
8 | 10 | from libecalc.domain.process.compressor.core.train.stage import CompressorTrainStage |
9 | 11 | from libecalc.domain.process.entities.process_units.choke import Choke |
10 | 12 | from libecalc.domain.process.entities.process_units.compressor.compressor import Compressor |
|
19 | 21 | from libecalc.domain.process.value_objects.chart import ChartCurve |
20 | 22 | from libecalc.domain.process.value_objects.chart.chart import ChartData |
21 | 23 | from libecalc.domain.process.value_objects.chart.chart_area_flag import ChartAreaFlag |
22 | | -from libecalc.domain.process.value_objects.fluid_stream import FluidModel, EoSModel, \ |
23 | | - FluidStream |
| 24 | +from libecalc.domain.process.value_objects.fluid_stream import FluidStream |
24 | 25 | from libecalc.presentation.yaml.mappers.charts.user_defined_chart_data import UserDefinedChartData |
25 | | -from libecalc.presentation.yaml.mappers.fluid_mapper import MEDIUM_MW_19P4 |
26 | 26 |
|
27 | 27 | # Temporarily adding dummy/temp stage process unit here until we have one ready |
28 | 28 | class MyStageProcessUnit(CompressorStageProcessUnit): |
@@ -97,8 +97,8 @@ def shaft() -> Shaft: |
97 | 97 | ## e.g. loaded from db, after solving has taken place |
98 | 98 | def train() -> ProcessSystem: |
99 | 99 | common_shaft = shaft() |
100 | | - return ProcessSystem( |
101 | | - process_units=[ |
| 100 | + return SerialProcessSystem( |
| 101 | + propagators=[ |
102 | 102 | MyStageProcessUnit( |
103 | 103 | compressor_stage=CompressorTrainStage( |
104 | 104 | compressor=Compressor( |
|
0 commit comments