ahuora-builder 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. ahuora_builder/__init__.py +0 -0
  2. ahuora_builder/arc_manager.py +33 -0
  3. ahuora_builder/build_state.py +57 -0
  4. ahuora_builder/custom/PIDController.py +494 -0
  5. ahuora_builder/custom/PySMOModel.py +178 -0
  6. ahuora_builder/custom/SimpleEffectivenessHX_DH.py +727 -0
  7. ahuora_builder/custom/__init__.py +0 -0
  8. ahuora_builder/custom/add_initial_dynamics.py +35 -0
  9. ahuora_builder/custom/custom_compressor.py +107 -0
  10. ahuora_builder/custom/custom_cooler.py +33 -0
  11. ahuora_builder/custom/custom_heat_exchanger.py +183 -0
  12. ahuora_builder/custom/custom_heat_exchanger_1d.py +258 -0
  13. ahuora_builder/custom/custom_heater.py +41 -0
  14. ahuora_builder/custom/custom_pressure_changer.py +34 -0
  15. ahuora_builder/custom/custom_pump.py +107 -0
  16. ahuora_builder/custom/custom_separator.py +371 -0
  17. ahuora_builder/custom/custom_tank.py +133 -0
  18. ahuora_builder/custom/custom_turbine.py +132 -0
  19. ahuora_builder/custom/custom_valve.py +300 -0
  20. ahuora_builder/custom/custom_variable.py +29 -0
  21. ahuora_builder/custom/direct_steam_injection.py +371 -0
  22. ahuora_builder/custom/energy/__init__.py +0 -0
  23. ahuora_builder/custom/energy/acBus.py +280 -0
  24. ahuora_builder/custom/energy/ac_property_package.py +279 -0
  25. ahuora_builder/custom/energy/battery.py +170 -0
  26. ahuora_builder/custom/energy/bus.py +182 -0
  27. ahuora_builder/custom/energy/energy_mixer.py +195 -0
  28. ahuora_builder/custom/energy/energy_splitter.py +228 -0
  29. ahuora_builder/custom/energy/grid.py +173 -0
  30. ahuora_builder/custom/energy/hydro.py +169 -0
  31. ahuora_builder/custom/energy/link.py +137 -0
  32. ahuora_builder/custom/energy/load.py +155 -0
  33. ahuora_builder/custom/energy/mainDistributionBoard.py +257 -0
  34. ahuora_builder/custom/energy/power_property_package.py +253 -0
  35. ahuora_builder/custom/energy/solar.py +176 -0
  36. ahuora_builder/custom/energy/storage.py +230 -0
  37. ahuora_builder/custom/energy/storage_wrapper +0 -0
  38. ahuora_builder/custom/energy/tests/__init__.py +0 -0
  39. ahuora_builder/custom/energy/tests/test_bus.py +44 -0
  40. ahuora_builder/custom/energy/tests/test_energy_mixer.py +46 -0
  41. ahuora_builder/custom/energy/tests/test_mdb.py +49 -0
  42. ahuora_builder/custom/energy/transformer.py +187 -0
  43. ahuora_builder/custom/energy/transformer_property_package.py +267 -0
  44. ahuora_builder/custom/energy/transmissionLine.py +228 -0
  45. ahuora_builder/custom/energy/wind.py +206 -0
  46. ahuora_builder/custom/hda_ideal_VLE.py +1341 -0
  47. ahuora_builder/custom/hda_reaction.py +182 -0
  48. ahuora_builder/custom/heat_exchanger_1d_wrapper.py +31 -0
  49. ahuora_builder/custom/integration_block.py +106 -0
  50. ahuora_builder/custom/inverted.py +81 -0
  51. ahuora_builder/custom/performance_curves.py +1 -0
  52. ahuora_builder/custom/reactions/__init__.py +0 -0
  53. ahuora_builder/custom/reactions/hda_stoich.py +10 -0
  54. ahuora_builder/custom/simple_separator.py +680 -0
  55. ahuora_builder/custom/tests/__init__.py +0 -0
  56. ahuora_builder/custom/tests/test_SimpleEffectivenessHX_DH.py +91 -0
  57. ahuora_builder/custom/tests/test_custom_tank.py +70 -0
  58. ahuora_builder/custom/tests/test_direct_steam_injection.py +41 -0
  59. ahuora_builder/custom/tests/test_simple_separator.py +46 -0
  60. ahuora_builder/custom/tests/test_waterpipe.py +46 -0
  61. ahuora_builder/custom/thermal_utility_systems/desuperheater.py +624 -0
  62. ahuora_builder/custom/thermal_utility_systems/header.py +889 -0
  63. ahuora_builder/custom/thermal_utility_systems/simple_heat_pump.py +567 -0
  64. ahuora_builder/custom/thermal_utility_systems/steam_header.py +353 -0
  65. ahuora_builder/custom/thermal_utility_systems/steam_user.py +944 -0
  66. ahuora_builder/custom/thermal_utility_systems/temp.py +349 -0
  67. ahuora_builder/custom/thermal_utility_systems/tests/test_desuperheater.py +142 -0
  68. ahuora_builder/custom/thermal_utility_systems/tests/test_header.py +998 -0
  69. ahuora_builder/custom/thermal_utility_systems/tests/test_ntu_hx.py +129 -0
  70. ahuora_builder/custom/thermal_utility_systems/tests/test_simple_heat_pump.py +120 -0
  71. ahuora_builder/custom/thermal_utility_systems/tests/test_steam_header.py +703 -0
  72. ahuora_builder/custom/thermal_utility_systems/tests/test_steam_user.py +277 -0
  73. ahuora_builder/custom/thermal_utility_systems/tests/test_waterpipe.py +36 -0
  74. ahuora_builder/custom/thermal_utility_systems/tests/test_willans_turbine.py +253 -0
  75. ahuora_builder/custom/thermal_utility_systems/willans_turbine.py +804 -0
  76. ahuora_builder/custom/translator.py +129 -0
  77. ahuora_builder/custom/updated_pressure_changer.py +1404 -0
  78. ahuora_builder/custom/valve_wrapper.py +38 -0
  79. ahuora_builder/custom/water_tank_with_units.py +456 -0
  80. ahuora_builder/diagnostics/__init__.py +0 -0
  81. ahuora_builder/diagnostics/infeasibilities.py +40 -0
  82. ahuora_builder/diagnostics/tests/__init__.py +0 -0
  83. ahuora_builder/diagnostics/tests/test_infeasibilities.py +28 -0
  84. ahuora_builder/flowsheet_manager.py +542 -0
  85. ahuora_builder/flowsheet_manager_type.py +20 -0
  86. ahuora_builder/generate_python_file.py +440 -0
  87. ahuora_builder/methods/BlockContext.py +84 -0
  88. ahuora_builder/methods/__init__.py +0 -0
  89. ahuora_builder/methods/adapter.py +355 -0
  90. ahuora_builder/methods/adapter_library.py +549 -0
  91. ahuora_builder/methods/adapter_methods.py +80 -0
  92. ahuora_builder/methods/expression_parsing.py +105 -0
  93. ahuora_builder/methods/load_unit_model.py +147 -0
  94. ahuora_builder/methods/slice_manipulation.py +7 -0
  95. ahuora_builder/methods/tests/__init__.py +0 -0
  96. ahuora_builder/methods/tests/test_expression_parsing.py +15 -0
  97. ahuora_builder/methods/units_handler.py +129 -0
  98. ahuora_builder/ml_wizard.py +101 -0
  99. ahuora_builder/port_manager.py +20 -0
  100. ahuora_builder/properties_manager.py +44 -0
  101. ahuora_builder/property_package_manager.py +78 -0
  102. ahuora_builder/solver.py +38 -0
  103. ahuora_builder/tear_manager.py +98 -0
  104. ahuora_builder/tests/__init__.py +0 -0
  105. ahuora_builder/tests/test_generate_python_file/__init__.py +0 -0
  106. ahuora_builder/tests/test_generate_python_file/configurations/compressor_generated.py +63 -0
  107. ahuora_builder/tests/test_generate_python_file/configurations/heat_exchanger_generated.py +70 -0
  108. ahuora_builder/tests/test_generate_python_file/configurations/pump_generated.py +84 -0
  109. ahuora_builder/tests/test_generate_python_file/configurations/recycle_generated.py +73 -0
  110. ahuora_builder/tests/test_generate_python_file/test_generate_python_file.py +108 -0
  111. ahuora_builder/tests/test_solver/__init__.py +0 -0
  112. ahuora_builder/tests/test_solver/configurations/BT_PR.json +59 -0
  113. ahuora_builder/tests/test_solver/configurations/BT_PR_solved.json +59 -0
  114. ahuora_builder/tests/test_solver/configurations/bus.json +99 -0
  115. ahuora_builder/tests/test_solver/configurations/bus_solved.json +50 -0
  116. ahuora_builder/tests/test_solver/configurations/compound_separator.json +377 -0
  117. ahuora_builder/tests/test_solver/configurations/compound_separator_solved.json +374 -0
  118. ahuora_builder/tests/test_solver/configurations/compressor.json +38 -0
  119. ahuora_builder/tests/test_solver/configurations/compressor_solved.json +68 -0
  120. ahuora_builder/tests/test_solver/configurations/constraints.json +44 -0
  121. ahuora_builder/tests/test_solver/configurations/constraints_solved.json +59 -0
  122. ahuora_builder/tests/test_solver/configurations/control.json +39 -0
  123. ahuora_builder/tests/test_solver/configurations/control_solved.json +68 -0
  124. ahuora_builder/tests/test_solver/configurations/dynamic_tank.json +733 -0
  125. ahuora_builder/tests/test_solver/configurations/dynamic_tank_solved.json +846 -0
  126. ahuora_builder/tests/test_solver/configurations/elimination.json +39 -0
  127. ahuora_builder/tests/test_solver/configurations/elimination_solved.json +68 -0
  128. ahuora_builder/tests/test_solver/configurations/expressions.json +68 -0
  129. ahuora_builder/tests/test_solver/configurations/expressions_solved.json +104 -0
  130. ahuora_builder/tests/test_solver/configurations/header.json +1192 -0
  131. ahuora_builder/tests/test_solver/configurations/header_solved.json +761 -0
  132. ahuora_builder/tests/test_solver/configurations/heat_exchanger.json +63 -0
  133. ahuora_builder/tests/test_solver/configurations/heat_exchanger_solved.json +104 -0
  134. ahuora_builder/tests/test_solver/configurations/heat_pump.json +137 -0
  135. ahuora_builder/tests/test_solver/configurations/heat_pump_solved.json +104 -0
  136. ahuora_builder/tests/test_solver/configurations/machine_learning.json +2156 -0
  137. ahuora_builder/tests/test_solver/configurations/machine_learning_solved.json +266 -0
  138. ahuora_builder/tests/test_solver/configurations/mass_flow_tear.json +77 -0
  139. ahuora_builder/tests/test_solver/configurations/mass_flow_tear_solved.json +68 -0
  140. ahuora_builder/tests/test_solver/configurations/milk_heater.json +521 -0
  141. ahuora_builder/tests/test_solver/configurations/milk_heater_solved.json +311 -0
  142. ahuora_builder/tests/test_solver/configurations/mixer.json +44 -0
  143. ahuora_builder/tests/test_solver/configurations/mixer_solved.json +86 -0
  144. ahuora_builder/tests/test_solver/configurations/optimization.json +62 -0
  145. ahuora_builder/tests/test_solver/configurations/optimization_solved.json +59 -0
  146. ahuora_builder/tests/test_solver/configurations/propane_heat_pump.json +167 -0
  147. ahuora_builder/tests/test_solver/configurations/propane_heat_pump_solved.json +158 -0
  148. ahuora_builder/tests/test_solver/configurations/propane_recycle.json +141 -0
  149. ahuora_builder/tests/test_solver/configurations/propane_recycle_solved.json +104 -0
  150. ahuora_builder/tests/test_solver/configurations/pump.json +64 -0
  151. ahuora_builder/tests/test_solver/configurations/pump_solved.json +59 -0
  152. ahuora_builder/tests/test_solver/configurations/pump_unit_conversions.json +63 -0
  153. ahuora_builder/tests/test_solver/configurations/recycle.json +49 -0
  154. ahuora_builder/tests/test_solver/configurations/recycle_solved.json +50 -0
  155. ahuora_builder/tests/test_solver/configurations/sb_vapor_frac.json +29 -0
  156. ahuora_builder/tests/test_solver/configurations/sb_vapor_frac_solved.json +29 -0
  157. ahuora_builder/tests/test_solver/configurations/solar.json +67 -0
  158. ahuora_builder/tests/test_solver/configurations/solar_solved.json +50 -0
  159. ahuora_builder/tests/test_solver/configurations/vapor_frac_target.json +67 -0
  160. ahuora_builder/tests/test_solver/configurations/vapor_frac_target_solved.json +68 -0
  161. ahuora_builder/tests/test_solver/test_solve_models.py +250 -0
  162. ahuora_builder/timing.py +65 -0
  163. ahuora_builder/types/__init__.py +1 -0
  164. ahuora_builder/unit_model_manager.py +48 -0
  165. ahuora_builder-0.1.0.dist-info/METADATA +14 -0
  166. ahuora_builder-0.1.0.dist-info/RECORD +167 -0
  167. ahuora_builder-0.1.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,167 @@
1
+ {
2
+ "id": 0,
3
+ "name": "propane_heat_pump",
4
+ "description": "ahuora day propane heat pump",
5
+ "dynamic": false,
6
+ "property_packages": [
7
+ {
8
+ "id": 1,
9
+ "type": "helmholtz",
10
+ "compounds": ["propane"],
11
+ "phases": ["Liq", "Vap"]
12
+ },
13
+ {
14
+ "id": 2,
15
+ "type": "helmholtz",
16
+ "compounds": ["water"],
17
+ "phases": ["Liq", "Vap"]
18
+ }
19
+ ],
20
+ "unit_models": [
21
+ {
22
+ "id": 1,
23
+ "type": "compressor",
24
+ "name": "Compressor",
25
+ "args": {
26
+ "property_package": 1
27
+ },
28
+ "properties": {
29
+ "efficiency_isentropic": { "data": [ { "id": 1, "value": 70 } ], "unit": "percent" }
30
+ },
31
+ "ports": {
32
+ "inlet": {
33
+ "id": 1,
34
+ "properties": {
35
+ "pressure": { "data": [ { "id": 2, "value": 0.5 } ], "unit": "MPa" },
36
+ "vapor_frac": { "data": [ { "id": 3, "value": 0 } ], "unit": "dimensionless" },
37
+ "flow_mol": { "data": [ { "id": 4, "value": 2 } ], "unit": "mol/s" }
38
+ }
39
+ },
40
+ "outlet": {
41
+ "id": 2,
42
+ "properties": {
43
+ "pressure": { "data": [ { "id": 5, "value": 2000 } ], "unit": "kPa" }
44
+ }
45
+ }
46
+ }
47
+ },
48
+ {
49
+ "id": 2,
50
+ "type": "heatExchanger",
51
+ "name": "Condenser",
52
+ "args": {
53
+ "hot_side": {
54
+ "property_package": 1
55
+ },
56
+ "cold_side": {
57
+ "property_package": 2
58
+ }
59
+ },
60
+ "properties": {
61
+ "area": { "data": [{ "id": 6, "value": 1 }], "unit": "m**2" },
62
+ "hot_side.deltaP": { "data": [ { "id": 7, "value": 0 } ], "unit": "Pa" },
63
+ "cold_side.deltaP": { "data": [ { "id": 8, "value": 0 } ], "unit": "Pa" }
64
+ },
65
+ "ports": {
66
+ "cold_side_inlet": {
67
+ "id": 3,
68
+ "properties": {
69
+ "temperature": { "data": [ { "id": 9, "value": 15 } ], "unit": "degC" },
70
+ "pressure": { "data": [ { "id": 10, "value": 1 } ], "unit": "bar" },
71
+ "flow_mass": { "data": [ { "id": 11, "value": 0.5 } ], "unit": "kg/s" }
72
+ }
73
+ },
74
+ "cold_side_outlet": {
75
+ "id": 4,
76
+ "properties": {}
77
+ },
78
+ "hot_side_inlet": {
79
+ "id": 5,
80
+ "properties": {}
81
+ },
82
+ "hot_side_outlet": {
83
+ "id": 6,
84
+ "properties": {
85
+ "temperature": { "data": [ { "id": 12, "value": 20 } ], "unit": "degC" }
86
+ }
87
+ }
88
+ }
89
+ },
90
+ {
91
+ "id": 3,
92
+ "type": "valve",
93
+ "name": "Exp Valve",
94
+ "args": {
95
+ "property_package": 1,
96
+ "enable_coefficients": true
97
+ },
98
+ "properties": {
99
+ "valve_opening": { "data": [ { "id": 13, "value": 0.6 } ], "unit": "dimensionless" }
100
+ },
101
+ "ports": {
102
+ "inlet": {
103
+ "id": 7,
104
+ "properties": {}
105
+ },
106
+ "outlet": {
107
+ "id": 8,
108
+ "properties": {
109
+ "pressure": { "data": [ { "id": 14, "value": 0.5 } ], "unit": "MPa" }
110
+ }
111
+ }
112
+ }
113
+ },
114
+ {
115
+ "id": 4,
116
+ "type": "cooler",
117
+ "name": "Cooler",
118
+ "args": {
119
+ "property_package": 1,
120
+ "has_pressure_change": true
121
+ },
122
+ "properties": {
123
+ "deltaP": { "data": [ { "id": 15, "value": 0 } ], "unit": "Pa" }
124
+ },
125
+ "ports": {
126
+ "inlet": {
127
+ "id": 9,
128
+ "properties": {}
129
+ },
130
+ "outlet": {
131
+ "id": 10,
132
+ "properties": {
133
+ "temperature": { "data": [ { "id": 16, "value": 2 } ], "unit": "degC" },
134
+ "total_energy_flow": { "data": [ { "id": 17 } ], "unit": "W" }
135
+ }
136
+ }
137
+ }
138
+ }
139
+ ],
140
+ "arcs": [
141
+ {
142
+ "id": 1,
143
+ "source": 2,
144
+ "destination": 5
145
+ },
146
+ {
147
+ "id": 2,
148
+ "source": 6,
149
+ "destination": 7
150
+ },
151
+ {
152
+ "id": 3,
153
+ "source": 8,
154
+ "destination": 9
155
+ },
156
+ {
157
+ "id": 4,
158
+ "source": 10,
159
+ "destination": 1,
160
+ "tear_guess": {
161
+ "flow_mol": true,
162
+ "pressure": false,
163
+ "enth_mol": false
164
+ }
165
+ }
166
+ ]
167
+ }
@@ -0,0 +1,158 @@
1
+ {
2
+ "id": 0,
3
+ "properties": [
4
+ {
5
+ "id": 1,
6
+ "name": "fs.Compressor_1.efficiency_isentropic[0.0]",
7
+ "value": [
8
+ 0.7000000000000001
9
+ ],
10
+ "unit": "dimensionless",
11
+ "unknown_units": false
12
+ },
13
+ {
14
+ "id": 2,
15
+ "name": "fs.Compressor_1.control_volume.properties_in[0.0].pressure",
16
+ "value": [
17
+ 500000.0
18
+ ],
19
+ "unit": "Pa",
20
+ "unknown_units": false
21
+ },
22
+ {
23
+ "id": 3,
24
+ "name": "fs.Compressor_1.control_volume.properties_in[0.0].vapor_frac",
25
+ "value": [
26
+ 1.0
27
+ ],
28
+ "unit": "dimensionless",
29
+ "unknown_units": false
30
+ },
31
+ {
32
+ "id": 4,
33
+ "name": "fs.Compressor_1.control_volume.properties_in[0.0].flow_mol",
34
+ "value": [
35
+ 2.0
36
+ ],
37
+ "unit": "mol/s",
38
+ "unknown_units": false
39
+ },
40
+ {
41
+ "id": 5,
42
+ "name": "fs.Compressor_1.control_volume.properties_out[0.0].pressure",
43
+ "value": [
44
+ 2000000.0
45
+ ],
46
+ "unit": "Pa",
47
+ "unknown_units": false
48
+ },
49
+ {
50
+ "id": 6,
51
+ "name": "fs.Condenser_2.area",
52
+ "value": [
53
+ 1.0
54
+ ],
55
+ "unit": "m**2",
56
+ "unknown_units": false
57
+ },
58
+ {
59
+ "id": 7,
60
+ "name": "fs.Condenser_2.hot_side.deltaP[0.0]",
61
+ "value": [
62
+ 0.0
63
+ ],
64
+ "unit": "kg/m/s**2",
65
+ "unknown_units": false
66
+ },
67
+ {
68
+ "id": 8,
69
+ "name": "fs.Condenser_2.cold_side.deltaP[0.0]",
70
+ "value": [
71
+ 0.0
72
+ ],
73
+ "unit": "kg/m/s**2",
74
+ "unknown_units": false
75
+ },
76
+ {
77
+ "id": 9,
78
+ "name": "fs.Condenser_2.cold_side.properties_in[0.0].temperature",
79
+ "value": [
80
+ 288.15000000000055
81
+ ],
82
+ "unit": "K",
83
+ "unknown_units": false
84
+ },
85
+ {
86
+ "id": 10,
87
+ "name": "fs.Condenser_2.cold_side.properties_in[0.0].pressure",
88
+ "value": [
89
+ 100000.0
90
+ ],
91
+ "unit": "Pa",
92
+ "unknown_units": false
93
+ },
94
+ {
95
+ "id": 11,
96
+ "name": "fs.Condenser_2.cold_side.properties_in[0.0].flow_mass",
97
+ "value": [
98
+ 0.5
99
+ ],
100
+ "unit": "kg/s",
101
+ "unknown_units": false
102
+ },
103
+ {
104
+ "id": 12,
105
+ "name": "fs.Condenser_2.hot_side.properties_out[0.0].temperature",
106
+ "value": [
107
+ 293.15
108
+ ],
109
+ "unit": "K",
110
+ "unknown_units": false
111
+ },
112
+ {
113
+ "id": 13,
114
+ "name": "fs.Exp Valve_3.valve_opening[0.0]",
115
+ "value": [
116
+ 0.6
117
+ ],
118
+ "unit": "dimensionless",
119
+ "unknown_units": false
120
+ },
121
+ {
122
+ "id": 14,
123
+ "name": "fs.Exp Valve_3.control_volume.properties_out[0.0].pressure",
124
+ "value": [
125
+ 500000.0
126
+ ],
127
+ "unit": "Pa",
128
+ "unknown_units": false
129
+ },
130
+ {
131
+ "id": 15,
132
+ "name": "fs.Cooler_4.control_volume.deltaP[0.0]",
133
+ "value": [
134
+ 0.0
135
+ ],
136
+ "unit": "kg/m/s**2",
137
+ "unknown_units": false
138
+ },
139
+ {
140
+ "id": 16,
141
+ "name": "fs.Cooler_4.control_volume.properties_out[0.0].temperature",
142
+ "value": [
143
+ 275.1499999999999
144
+ ],
145
+ "unit": "K",
146
+ "unknown_units": false
147
+ },
148
+ {
149
+ "id": 17,
150
+ "name": "fs.Cooler_4.control_volume.properties_out[0.0].total_energy_flow",
151
+ "value": [
152
+ 50903.78014906854
153
+ ],
154
+ "unit": "J/s",
155
+ "unknown_units": false
156
+ }
157
+ ]
158
+ }
@@ -0,0 +1,141 @@
1
+ {
2
+ "id": 0,
3
+ "name": "propane_recycle",
4
+ "dynamic": false,
5
+ "property_packages": [
6
+ {
7
+ "id": 1,
8
+ "compounds": ["propane"],
9
+ "type": "helmholtz",
10
+ "phases": ["Vap", "Liq"]
11
+ }
12
+ ],
13
+ "unit_models": [
14
+ {
15
+ "id": 8,
16
+ "type": "compressor",
17
+ "name": "Compressor-1",
18
+ "args": {
19
+ "property_package": 1
20
+ },
21
+ "properties": {
22
+ "efficiency_isentropic": { "data": [ { "id": 1, "value": 0.8 } ], "unit": "dimensionless" },
23
+ "ratioP": { "data": [ { "id": 2, "value": 5 } ], "unit": "dimensionless" }
24
+ },
25
+ "ports": {
26
+ "inlet": {
27
+ "id": 1,
28
+ "properties": {
29
+ "flow_mass": { "data": [ { "id": 3, "value": 1 } ], "unit": "kg/s" },
30
+ "pressure": { "data": [ { "id": 4, "value": 500 } ], "unit": "kPa" },
31
+ "temperature": { "data": [ { "id": 5, "value": 275.15 } ], "unit": "K" }
32
+ }
33
+ },
34
+ "outlet": {
35
+ "id": 2,
36
+ "properties": {}
37
+ }
38
+ }
39
+ },
40
+ {
41
+ "id": 9,
42
+ "type": "cooler",
43
+ "name": "Cooler-1",
44
+ "args": {
45
+ "property_package": 1,
46
+ "has_pressure_change": true
47
+ },
48
+ "properties": {
49
+ "deltaP": { "data": [ { "id": 6, "value": 0 } ], "unit": "Pa" }
50
+ },
51
+ "ports": {
52
+ "inlet": {
53
+ "id": 3,
54
+ "properties": {}
55
+ },
56
+ "outlet": {
57
+ "id": 4,
58
+ "properties": {
59
+ "temperature": { "data": [ { "id": 7, "value": 293.15 } ], "unit": "K" }
60
+ }
61
+ }
62
+ }
63
+ },
64
+ {
65
+ "id": 10,
66
+ "type": "valve",
67
+ "name": "Valve-1",
68
+ "args": {
69
+ "property_package": 1,
70
+ "enable_coefficients": true
71
+ },
72
+ "properties": {
73
+ "valve_opening": { "data": [ { "id": 8, "value": 0.6 } ], "unit": "dimensionless" }
74
+ },
75
+ "ports": {
76
+ "inlet": {
77
+ "id": 5,
78
+ "properties": {}
79
+ },
80
+ "outlet": {
81
+ "id": 6,
82
+ "properties": {
83
+ "pressure": { "data": [ { "id": 9, "value": 500 } ], "unit": "kPa" }
84
+
85
+ }
86
+ }
87
+ }
88
+ },
89
+ {
90
+ "id": 11,
91
+ "type": "heater",
92
+ "name": "Heater-1",
93
+ "args": {
94
+ "property_package": 1,
95
+ "has_pressure_change": true
96
+ },
97
+ "properties": {
98
+ "deltaP": { "data": [ { "id": 10, "value": 0 } ], "unit": "Pa" }
99
+ },
100
+ "ports": {
101
+ "inlet": {
102
+ "id": 7,
103
+ "properties": {}
104
+ },
105
+ "outlet": {
106
+ "id": 8,
107
+ "properties": {
108
+ "temperature": { "data": [ { "id": 11, "value": 275.15 } ], "unit": "K" }
109
+ }
110
+ }
111
+ }
112
+ }
113
+ ],
114
+ "arcs": [
115
+ {
116
+ "id": 1,
117
+ "source": 2,
118
+ "destination": 3
119
+ },
120
+ {
121
+ "id": 2,
122
+ "source": 4,
123
+ "destination": 5
124
+ },
125
+ {
126
+ "id": 3,
127
+ "source": 6,
128
+ "destination": 7
129
+ },
130
+ {
131
+ "id": 4,
132
+ "source": 8,
133
+ "destination": 1,
134
+ "tear_guess": {
135
+ "flow_mol": true,
136
+ "enth_mol": false,
137
+ "pressure": false
138
+ }
139
+ }
140
+ ]
141
+ }
@@ -0,0 +1,104 @@
1
+ {
2
+ "id": 0,
3
+ "properties": [
4
+ {
5
+ "id": 1,
6
+ "name": "fs.Compressor-1_8.efficiency_isentropic[0.0]",
7
+ "value": [
8
+ 0.8
9
+ ],
10
+ "unit": "dimensionless",
11
+ "unknown_units": false
12
+ },
13
+ {
14
+ "id": 2,
15
+ "name": "fs.Compressor-1_8.ratioP[0.0]",
16
+ "value": [
17
+ 5.0
18
+ ],
19
+ "unit": "dimensionless",
20
+ "unknown_units": false
21
+ },
22
+ {
23
+ "id": 3,
24
+ "name": "fs.Compressor-1_8.control_volume.properties_in[0.0].flow_mass",
25
+ "value": [
26
+ 1.0
27
+ ],
28
+ "unit": "kg/s",
29
+ "unknown_units": false
30
+ },
31
+ {
32
+ "id": 4,
33
+ "name": "fs.Compressor-1_8.control_volume.properties_in[0.0].pressure",
34
+ "value": [
35
+ 500000.0
36
+ ],
37
+ "unit": "Pa",
38
+ "unknown_units": false
39
+ },
40
+ {
41
+ "id": 5,
42
+ "name": "fs.Compressor-1_8.control_volume.properties_in[0.0].temperature",
43
+ "value": [
44
+ 275.1500000000001
45
+ ],
46
+ "unit": "K",
47
+ "unknown_units": false
48
+ },
49
+ {
50
+ "id": 6,
51
+ "name": "fs.Cooler-1_9.control_volume.deltaP[0.0]",
52
+ "value": [
53
+ 0.0
54
+ ],
55
+ "unit": "kg/m/s**2",
56
+ "unknown_units": false
57
+ },
58
+ {
59
+ "id": 7,
60
+ "name": "fs.Cooler-1_9.control_volume.properties_out[0.0].temperature",
61
+ "value": [
62
+ 293.1500000000001
63
+ ],
64
+ "unit": "K",
65
+ "unknown_units": false
66
+ },
67
+ {
68
+ "id": 8,
69
+ "name": "fs.Valve-1_10.valve_opening[0.0]",
70
+ "value": [
71
+ 0.6
72
+ ],
73
+ "unit": "dimensionless",
74
+ "unknown_units": false
75
+ },
76
+ {
77
+ "id": 9,
78
+ "name": "fs.Valve-1_10.control_volume.properties_out[0.0].pressure",
79
+ "value": [
80
+ 500000.0
81
+ ],
82
+ "unit": "Pa",
83
+ "unknown_units": false
84
+ },
85
+ {
86
+ "id": 10,
87
+ "name": "fs.Heater-1_11.control_volume.deltaP[0.0]",
88
+ "value": [
89
+ 0.0
90
+ ],
91
+ "unit": "kg/m/s**2",
92
+ "unknown_units": false
93
+ },
94
+ {
95
+ "id": 11,
96
+ "name": "fs.Heater-1_11.control_volume.properties_out[0.0].temperature",
97
+ "value": [
98
+ 275.1500000000001
99
+ ],
100
+ "unit": "K",
101
+ "unknown_units": false
102
+ }
103
+ ]
104
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "id": 0,
3
+ "name": "pump_test",
4
+ "dynamic": false,
5
+ "property_packages": [],
6
+ "unit_models": [
7
+ {
8
+ "id": 8,
9
+ "type": "pump",
10
+ "name": "Pump-1",
11
+ "properties": {
12
+ "efficiency_pump": { "data": [ { "id": 1, "value": 0.8 } ], "unit": "dimensionless" }
13
+ },
14
+ "args": {
15
+ "property_package": -1,
16
+ "power_property_package": "m.fs.PoP"
17
+ },
18
+ "ports": {
19
+ "inlet": {
20
+ "id": 1,
21
+ "properties": {
22
+ "pressure": { "data": [ { "id": 2, "value": 11000000 } ], "unit": "Pa" },
23
+ "enth_mol": { "data": [ { "id": 3, "value": 125 } ], "unit": "J/mol" },
24
+ "flow_mol": { "data": [ { "id": 4, "value": 431 } ], "unit": "mol/s" }
25
+ }
26
+ },
27
+ "outlet": {
28
+ "id": 3,
29
+ "properties": {
30
+ "pressure": { "data": [ { "id": 5, "value": 22000000 } ], "unit": "Pa" }
31
+ }
32
+ }
33
+ }
34
+ },
35
+ {
36
+ "id": 9,
37
+ "type": "heater",
38
+ "name": "Heater-1",
39
+ "args": {
40
+ "property_package": -1
41
+ },
42
+ "properties": {
43
+ "heat_duty": { "data": [ { "id": 6, "value": 100 } ], "unit": "J/s" }
44
+ },
45
+ "ports": {
46
+ "inlet": {
47
+ "id": 2,
48
+ "properties": {}
49
+ },
50
+ "outlet": {
51
+ "id": 4,
52
+ "properties": {}
53
+ }
54
+ }
55
+ }
56
+ ],
57
+ "arcs": [
58
+ {
59
+ "id": 7,
60
+ "source": 3,
61
+ "destination": 2
62
+ }
63
+ ]
64
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "id": 0,
3
+ "properties": [
4
+ {
5
+ "id": 1,
6
+ "name": "fs.Pump-1_8.efficiency_pump[0.0]",
7
+ "value": [
8
+ 0.8
9
+ ],
10
+ "unit": "dimensionless",
11
+ "unknown_units": false
12
+ },
13
+ {
14
+ "id": 2,
15
+ "name": "fs.Pump-1_8.control_volume.properties_in[0.0].pressure",
16
+ "value": [
17
+ 11000000.0001255
18
+ ],
19
+ "unit": "Pa",
20
+ "unknown_units": false
21
+ },
22
+ {
23
+ "id": 3,
24
+ "name": "fs.Pump-1_8.control_volume.properties_in[0.0].enth_mol",
25
+ "value": [
26
+ 124.99992879999999
27
+ ],
28
+ "unit": "J/mol",
29
+ "unknown_units": false
30
+ },
31
+ {
32
+ "id": 4,
33
+ "name": "fs.Pump-1_8.control_volume.properties_in[0.0].flow_mol",
34
+ "value": [
35
+ 431.0
36
+ ],
37
+ "unit": "mol/s",
38
+ "unknown_units": false
39
+ },
40
+ {
41
+ "id": 5,
42
+ "name": "fs.Pump-1_8.control_volume.properties_out[0.0].pressure",
43
+ "value": [
44
+ 22000000.0
45
+ ],
46
+ "unit": "Pa",
47
+ "unknown_units": false
48
+ },
49
+ {
50
+ "id": 6,
51
+ "name": "fs.Heater-1_9.control_volume.heat[0.0]",
52
+ "value": [
53
+ 100.0
54
+ ],
55
+ "unit": "kg*m**2/s**3",
56
+ "unknown_units": false
57
+ }
58
+ ]
59
+ }