Coverage for backend/core/auxiliary/enums/unitOpData.py: 100%

103 statements  

« prev     ^ index     » next       coverage.py v7.10.7, created at 2025-11-06 23:27 +0000

1from django.db import models 

2from enum import Enum 

3 

4class SimulationObjectClass(models.TextChoices): 

5 DecisionNode = "decisionNode" 

6 Stream = "stream" 

7 HumidAirStream = "humid_air_stream" 

8 Mixer = "mixer" 

9 Splitter = "splitter" 

10 Header = "header" 

11 NodeEn = "NodeEn" 

12 Pump = "pump" 

13 Tank = "Tank" 

14 Vessel = "Vessel" 

15 EnergyStream = "energy_stream" 

16 acStream = "ac_stream" 

17 TransformerStream = "transformer_stream" 

18 Compressor = "compressor" 

19 Turbine = "turbine" 

20 TPVessel = "TPVessel" 

21 Cooler = "cooler" 

22 Heater = "heater" 

23 Pipe = "Pipe" 

24 Valve = "valve" 

25 OT_Adjust = "OT_Adjust" 

26 OT_Spec = "OT_Spec" 

27 Recycle = "recycle" 

28 RCT_Conversion = "RCT_Conversion" 

29 RCT_Equilibrium = "RCT_Equilibrium" 

30 RCT_Gibbs = "RCT_Gibbs" 

31 RCT_CSTR = "RCT_CSTR" 

32 RCT_PFR = "RCT_PFR" 

33 HeatExchanger = "heatExchanger" 

34 ShortcutColumn = "ShortcutColumn" 

35 DistillationColumn = "DistillationColumn" 

36 AbsorptionColumn = "AbsorptionColumn" 

37 RefluxedAbsorber = "RefluxedAbsorber" 

38 ReboiledAbsorber = "ReboiledAbsorber" 

39 OT_EnergyRecycle = "OT_EnergyRecycle" 

40 ComponentSeparator = "ComponentSeparator" 

41 OrificePlate = "OrificePlate" 

42 CustomUO = "CustomUO" 

43 ExcelUO = "ExcelUO" 

44 CapeOpenUO = "CapeOpenUO" 

45 FlowsheetUO = "FlowsheetUO" 

46 SolidSeparator = "SolidSeparator" 

47 Filter = "Filter" 

48 CompressorExpander = "CompressorExpander" 

49 HeaterCooler = "HeaterCooler" 

50 External = "External" 

51 AnalogGauge = "AnalogGauge" 

52 DigitalGauge = "DigitalGauge" 

53 LevelGauge = "LevelGauge" 

54 pid_controller = "pid_controller" 

55 Switch = "Switch" 

56 Input = "Input" 

57 AbstractProcess = "AbstractProcess" 

58 RCT_bio = "RCT_bio", 

59 RCT_chem = "RCT_chem", 

60 Sep_col = "Sep_col", 

61 GasLiq = "GasLiquidSeparator", 

62 PhaseSeparator = "phaseSeparator", 

63 CompoundSeparator = "compoundSeparator", 

64 Group = "group" 

65 MachineLearningBlock = "machineLearningBlock", 

66 HeatPump="heatPump", 

67 Transformer="transformer", 

68 Grid = "grid", 

69 Load="load", 

70 Solar="solar", 

71 Boiler="boiler", 

72 Deferrable="deferrable", 

73 Hydro="hydro", 

74 Convertor="convertor", 

75 # Battery="battery", 

76 Storage="storage", 

77 Link="link", 

78 Wind="wind", 

79 energy_mixer="energy_mixer" 

80 Bus = "bus" 

81 acBus = "acBus" 

82 transmissionLine = "transmissionLine" 

83 eLoad="eload" 

84 DirectSteamInjection="direct_steam_injection" 

85 Translator="translator" 

86 Integration="integration" 

87 EnergySplitter="energy_splitter" 

88 MDB = "mdb" 

89 WillansTurbine = "willans_turbine" 

90 custom_variable = "custom_variable" 

91 PlTurbine = "pl_turbine" 

92 DtsTurbine = "dts_turbine" 

93 BsTurbine = "bs_turbine" 

94 CsTurbine = "cs_turbine" 

95 SimpleHeader = "simple_header" 

96 Stoich_HDA = "stoich_hda" 

97 SteamUser = "steam_user" 

98 DeSuperheater = "desuperheater" 

99 NTUHeatExchanger = "heat_exchanger_ntu" 

100 WaterPipe = "waterpipe" 

101 LumpedCapacitanceHeatExchanger = "heat_exchanger_lc" 

102 HeatExchanger1D = "heat_exchanger_1d" 

103 

104turbine_configs = [SimulationObjectClass.Turbine, SimulationObjectClass.WillansTurbine, 

105 SimulationObjectClass.PlTurbine, SimulationObjectClass.DtsTurbine, 

106 SimulationObjectClass.BsTurbine, SimulationObjectClass.CsTurbine] 

107 

108hx_configs = [SimulationObjectClass.HeatExchanger, SimulationObjectClass.NTUHeatExchanger, SimulationObjectClass.LumpedCapacitanceHeatExchanger] 

109 

110heat_exchange_ops = [SimulationObjectClass.Heater, SimulationObjectClass.Cooler, SimulationObjectClass.HeatExchanger]