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.
- ahuora_builder/__init__.py +0 -0
- ahuora_builder/arc_manager.py +33 -0
- ahuora_builder/build_state.py +57 -0
- ahuora_builder/custom/PIDController.py +494 -0
- ahuora_builder/custom/PySMOModel.py +178 -0
- ahuora_builder/custom/SimpleEffectivenessHX_DH.py +727 -0
- ahuora_builder/custom/__init__.py +0 -0
- ahuora_builder/custom/add_initial_dynamics.py +35 -0
- ahuora_builder/custom/custom_compressor.py +107 -0
- ahuora_builder/custom/custom_cooler.py +33 -0
- ahuora_builder/custom/custom_heat_exchanger.py +183 -0
- ahuora_builder/custom/custom_heat_exchanger_1d.py +258 -0
- ahuora_builder/custom/custom_heater.py +41 -0
- ahuora_builder/custom/custom_pressure_changer.py +34 -0
- ahuora_builder/custom/custom_pump.py +107 -0
- ahuora_builder/custom/custom_separator.py +371 -0
- ahuora_builder/custom/custom_tank.py +133 -0
- ahuora_builder/custom/custom_turbine.py +132 -0
- ahuora_builder/custom/custom_valve.py +300 -0
- ahuora_builder/custom/custom_variable.py +29 -0
- ahuora_builder/custom/direct_steam_injection.py +371 -0
- ahuora_builder/custom/energy/__init__.py +0 -0
- ahuora_builder/custom/energy/acBus.py +280 -0
- ahuora_builder/custom/energy/ac_property_package.py +279 -0
- ahuora_builder/custom/energy/battery.py +170 -0
- ahuora_builder/custom/energy/bus.py +182 -0
- ahuora_builder/custom/energy/energy_mixer.py +195 -0
- ahuora_builder/custom/energy/energy_splitter.py +228 -0
- ahuora_builder/custom/energy/grid.py +173 -0
- ahuora_builder/custom/energy/hydro.py +169 -0
- ahuora_builder/custom/energy/link.py +137 -0
- ahuora_builder/custom/energy/load.py +155 -0
- ahuora_builder/custom/energy/mainDistributionBoard.py +257 -0
- ahuora_builder/custom/energy/power_property_package.py +253 -0
- ahuora_builder/custom/energy/solar.py +176 -0
- ahuora_builder/custom/energy/storage.py +230 -0
- ahuora_builder/custom/energy/storage_wrapper +0 -0
- ahuora_builder/custom/energy/tests/__init__.py +0 -0
- ahuora_builder/custom/energy/tests/test_bus.py +44 -0
- ahuora_builder/custom/energy/tests/test_energy_mixer.py +46 -0
- ahuora_builder/custom/energy/tests/test_mdb.py +49 -0
- ahuora_builder/custom/energy/transformer.py +187 -0
- ahuora_builder/custom/energy/transformer_property_package.py +267 -0
- ahuora_builder/custom/energy/transmissionLine.py +228 -0
- ahuora_builder/custom/energy/wind.py +206 -0
- ahuora_builder/custom/hda_ideal_VLE.py +1341 -0
- ahuora_builder/custom/hda_reaction.py +182 -0
- ahuora_builder/custom/heat_exchanger_1d_wrapper.py +31 -0
- ahuora_builder/custom/integration_block.py +106 -0
- ahuora_builder/custom/inverted.py +81 -0
- ahuora_builder/custom/performance_curves.py +1 -0
- ahuora_builder/custom/reactions/__init__.py +0 -0
- ahuora_builder/custom/reactions/hda_stoich.py +10 -0
- ahuora_builder/custom/simple_separator.py +680 -0
- ahuora_builder/custom/tests/__init__.py +0 -0
- ahuora_builder/custom/tests/test_SimpleEffectivenessHX_DH.py +91 -0
- ahuora_builder/custom/tests/test_custom_tank.py +70 -0
- ahuora_builder/custom/tests/test_direct_steam_injection.py +41 -0
- ahuora_builder/custom/tests/test_simple_separator.py +46 -0
- ahuora_builder/custom/tests/test_waterpipe.py +46 -0
- ahuora_builder/custom/thermal_utility_systems/desuperheater.py +624 -0
- ahuora_builder/custom/thermal_utility_systems/header.py +889 -0
- ahuora_builder/custom/thermal_utility_systems/simple_heat_pump.py +567 -0
- ahuora_builder/custom/thermal_utility_systems/steam_header.py +353 -0
- ahuora_builder/custom/thermal_utility_systems/steam_user.py +944 -0
- ahuora_builder/custom/thermal_utility_systems/temp.py +349 -0
- ahuora_builder/custom/thermal_utility_systems/tests/test_desuperheater.py +142 -0
- ahuora_builder/custom/thermal_utility_systems/tests/test_header.py +998 -0
- ahuora_builder/custom/thermal_utility_systems/tests/test_ntu_hx.py +129 -0
- ahuora_builder/custom/thermal_utility_systems/tests/test_simple_heat_pump.py +120 -0
- ahuora_builder/custom/thermal_utility_systems/tests/test_steam_header.py +703 -0
- ahuora_builder/custom/thermal_utility_systems/tests/test_steam_user.py +277 -0
- ahuora_builder/custom/thermal_utility_systems/tests/test_waterpipe.py +36 -0
- ahuora_builder/custom/thermal_utility_systems/tests/test_willans_turbine.py +253 -0
- ahuora_builder/custom/thermal_utility_systems/willans_turbine.py +804 -0
- ahuora_builder/custom/translator.py +129 -0
- ahuora_builder/custom/updated_pressure_changer.py +1404 -0
- ahuora_builder/custom/valve_wrapper.py +38 -0
- ahuora_builder/custom/water_tank_with_units.py +456 -0
- ahuora_builder/diagnostics/__init__.py +0 -0
- ahuora_builder/diagnostics/infeasibilities.py +40 -0
- ahuora_builder/diagnostics/tests/__init__.py +0 -0
- ahuora_builder/diagnostics/tests/test_infeasibilities.py +28 -0
- ahuora_builder/flowsheet_manager.py +542 -0
- ahuora_builder/flowsheet_manager_type.py +20 -0
- ahuora_builder/generate_python_file.py +440 -0
- ahuora_builder/methods/BlockContext.py +84 -0
- ahuora_builder/methods/__init__.py +0 -0
- ahuora_builder/methods/adapter.py +355 -0
- ahuora_builder/methods/adapter_library.py +549 -0
- ahuora_builder/methods/adapter_methods.py +80 -0
- ahuora_builder/methods/expression_parsing.py +105 -0
- ahuora_builder/methods/load_unit_model.py +147 -0
- ahuora_builder/methods/slice_manipulation.py +7 -0
- ahuora_builder/methods/tests/__init__.py +0 -0
- ahuora_builder/methods/tests/test_expression_parsing.py +15 -0
- ahuora_builder/methods/units_handler.py +129 -0
- ahuora_builder/ml_wizard.py +101 -0
- ahuora_builder/port_manager.py +20 -0
- ahuora_builder/properties_manager.py +44 -0
- ahuora_builder/property_package_manager.py +78 -0
- ahuora_builder/solver.py +38 -0
- ahuora_builder/tear_manager.py +98 -0
- ahuora_builder/tests/__init__.py +0 -0
- ahuora_builder/tests/test_generate_python_file/__init__.py +0 -0
- ahuora_builder/tests/test_generate_python_file/configurations/compressor_generated.py +63 -0
- ahuora_builder/tests/test_generate_python_file/configurations/heat_exchanger_generated.py +70 -0
- ahuora_builder/tests/test_generate_python_file/configurations/pump_generated.py +84 -0
- ahuora_builder/tests/test_generate_python_file/configurations/recycle_generated.py +73 -0
- ahuora_builder/tests/test_generate_python_file/test_generate_python_file.py +108 -0
- ahuora_builder/tests/test_solver/__init__.py +0 -0
- ahuora_builder/tests/test_solver/configurations/BT_PR.json +59 -0
- ahuora_builder/tests/test_solver/configurations/BT_PR_solved.json +59 -0
- ahuora_builder/tests/test_solver/configurations/bus.json +99 -0
- ahuora_builder/tests/test_solver/configurations/bus_solved.json +50 -0
- ahuora_builder/tests/test_solver/configurations/compound_separator.json +377 -0
- ahuora_builder/tests/test_solver/configurations/compound_separator_solved.json +374 -0
- ahuora_builder/tests/test_solver/configurations/compressor.json +38 -0
- ahuora_builder/tests/test_solver/configurations/compressor_solved.json +68 -0
- ahuora_builder/tests/test_solver/configurations/constraints.json +44 -0
- ahuora_builder/tests/test_solver/configurations/constraints_solved.json +59 -0
- ahuora_builder/tests/test_solver/configurations/control.json +39 -0
- ahuora_builder/tests/test_solver/configurations/control_solved.json +68 -0
- ahuora_builder/tests/test_solver/configurations/dynamic_tank.json +733 -0
- ahuora_builder/tests/test_solver/configurations/dynamic_tank_solved.json +846 -0
- ahuora_builder/tests/test_solver/configurations/elimination.json +39 -0
- ahuora_builder/tests/test_solver/configurations/elimination_solved.json +68 -0
- ahuora_builder/tests/test_solver/configurations/expressions.json +68 -0
- ahuora_builder/tests/test_solver/configurations/expressions_solved.json +104 -0
- ahuora_builder/tests/test_solver/configurations/header.json +1192 -0
- ahuora_builder/tests/test_solver/configurations/header_solved.json +761 -0
- ahuora_builder/tests/test_solver/configurations/heat_exchanger.json +63 -0
- ahuora_builder/tests/test_solver/configurations/heat_exchanger_solved.json +104 -0
- ahuora_builder/tests/test_solver/configurations/heat_pump.json +137 -0
- ahuora_builder/tests/test_solver/configurations/heat_pump_solved.json +104 -0
- ahuora_builder/tests/test_solver/configurations/machine_learning.json +2156 -0
- ahuora_builder/tests/test_solver/configurations/machine_learning_solved.json +266 -0
- ahuora_builder/tests/test_solver/configurations/mass_flow_tear.json +77 -0
- ahuora_builder/tests/test_solver/configurations/mass_flow_tear_solved.json +68 -0
- ahuora_builder/tests/test_solver/configurations/milk_heater.json +521 -0
- ahuora_builder/tests/test_solver/configurations/milk_heater_solved.json +311 -0
- ahuora_builder/tests/test_solver/configurations/mixer.json +44 -0
- ahuora_builder/tests/test_solver/configurations/mixer_solved.json +86 -0
- ahuora_builder/tests/test_solver/configurations/optimization.json +62 -0
- ahuora_builder/tests/test_solver/configurations/optimization_solved.json +59 -0
- ahuora_builder/tests/test_solver/configurations/propane_heat_pump.json +167 -0
- ahuora_builder/tests/test_solver/configurations/propane_heat_pump_solved.json +158 -0
- ahuora_builder/tests/test_solver/configurations/propane_recycle.json +141 -0
- ahuora_builder/tests/test_solver/configurations/propane_recycle_solved.json +104 -0
- ahuora_builder/tests/test_solver/configurations/pump.json +64 -0
- ahuora_builder/tests/test_solver/configurations/pump_solved.json +59 -0
- ahuora_builder/tests/test_solver/configurations/pump_unit_conversions.json +63 -0
- ahuora_builder/tests/test_solver/configurations/recycle.json +49 -0
- ahuora_builder/tests/test_solver/configurations/recycle_solved.json +50 -0
- ahuora_builder/tests/test_solver/configurations/sb_vapor_frac.json +29 -0
- ahuora_builder/tests/test_solver/configurations/sb_vapor_frac_solved.json +29 -0
- ahuora_builder/tests/test_solver/configurations/solar.json +67 -0
- ahuora_builder/tests/test_solver/configurations/solar_solved.json +50 -0
- ahuora_builder/tests/test_solver/configurations/vapor_frac_target.json +67 -0
- ahuora_builder/tests/test_solver/configurations/vapor_frac_target_solved.json +68 -0
- ahuora_builder/tests/test_solver/test_solve_models.py +250 -0
- ahuora_builder/timing.py +65 -0
- ahuora_builder/types/__init__.py +1 -0
- ahuora_builder/unit_model_manager.py +48 -0
- ahuora_builder-0.1.0.dist-info/METADATA +14 -0
- ahuora_builder-0.1.0.dist-info/RECORD +167 -0
- ahuora_builder-0.1.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 4,
|
|
3
|
+
"properties": [
|
|
4
|
+
{
|
|
5
|
+
"id": 313,
|
|
6
|
+
"name": "fs.Compound Separator 21_21.split_fraction[0.0,outlet_2,water]",
|
|
7
|
+
"value": [
|
|
8
|
+
0.32075598317011056
|
|
9
|
+
],
|
|
10
|
+
"unit": "dimensionless",
|
|
11
|
+
"unknown_units": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": 318,
|
|
15
|
+
"name": "fs.Compound Separator 21_21.split_fraction[0.0,outlet_2,propane]",
|
|
16
|
+
"value": [
|
|
17
|
+
0.2
|
|
18
|
+
],
|
|
19
|
+
"unit": "dimensionless",
|
|
20
|
+
"unknown_units": false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": 280,
|
|
24
|
+
"name": "fs.Compound Separator 21_21.mixed_state[0.0].flow_mol",
|
|
25
|
+
"value": [
|
|
26
|
+
33.0
|
|
27
|
+
],
|
|
28
|
+
"unit": "mol/s",
|
|
29
|
+
"unknown_units": false
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": 282,
|
|
33
|
+
"name": "fs.Compound Separator 21_21.mixed_state[0.0].pressure",
|
|
34
|
+
"value": [
|
|
35
|
+
101325.0
|
|
36
|
+
],
|
|
37
|
+
"unit": "kg/m/s**2",
|
|
38
|
+
"unknown_units": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": 285,
|
|
42
|
+
"name": "fs.Compound Separator 21_21.mixed_state[0.0].enth_mass",
|
|
43
|
+
"value": [
|
|
44
|
+
-4780256.878668922
|
|
45
|
+
],
|
|
46
|
+
"unit": "m**2/s**2",
|
|
47
|
+
"unknown_units": false
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": 284,
|
|
51
|
+
"name": "fs.Compound Separator 21_21.mixed_state[0.0].enth_mol",
|
|
52
|
+
"value": [
|
|
53
|
+
-160920.1009509612
|
|
54
|
+
],
|
|
55
|
+
"unit": "kg*m**2/mol/s**2",
|
|
56
|
+
"unknown_units": false
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": 319,
|
|
60
|
+
"name": "fs.Compound Separator 21_21.mixed_state[0.0].mole_frac_comp[propane]",
|
|
61
|
+
"value": [
|
|
62
|
+
0.6
|
|
63
|
+
],
|
|
64
|
+
"unit": "dimensionless",
|
|
65
|
+
"unknown_units": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": 314,
|
|
69
|
+
"name": "fs.Compound Separator 21_21.mixed_state[0.0].mole_frac_comp[water]",
|
|
70
|
+
"value": [
|
|
71
|
+
0.4
|
|
72
|
+
],
|
|
73
|
+
"unit": "dimensionless",
|
|
74
|
+
"unknown_units": false
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": 281,
|
|
78
|
+
"name": "fs.Compound Separator 21_21.mixed_state[0.0].temperature",
|
|
79
|
+
"value": [
|
|
80
|
+
275.15
|
|
81
|
+
],
|
|
82
|
+
"unit": "K",
|
|
83
|
+
"unknown_units": false
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": 283,
|
|
87
|
+
"name": "fs.Compound Separator 21_21.mixed_state[0.0].vapor_frac",
|
|
88
|
+
"value": [
|
|
89
|
+
0.9999999994576588
|
|
90
|
+
],
|
|
91
|
+
"unit": "dimensionless",
|
|
92
|
+
"unknown_units": false
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": 279,
|
|
96
|
+
"name": "fs.Compound Separator 21_21.mixed_state[0.0].flow_mass",
|
|
97
|
+
"value": [
|
|
98
|
+
1.110894972
|
|
99
|
+
],
|
|
100
|
+
"unit": "kg/s",
|
|
101
|
+
"unknown_units": false
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"id": 289,
|
|
105
|
+
"name": "fs.Compound Separator 21_21.mixed_state[0.0].flow_vol",
|
|
106
|
+
"value": [
|
|
107
|
+
0.733953986301311
|
|
108
|
+
],
|
|
109
|
+
"unit": "m**3/s",
|
|
110
|
+
"unknown_units": false
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": 287,
|
|
114
|
+
"name": "fs.Compound Separator 21_21.mixed_state[0.0].entr_mass",
|
|
115
|
+
"value": [
|
|
116
|
+
-7032.590810399375
|
|
117
|
+
],
|
|
118
|
+
"unit": "m**2/K/s**2",
|
|
119
|
+
"unknown_units": false
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"id": 286,
|
|
123
|
+
"name": "fs.Compound Separator 21_21.mixed_state[0.0].entr_mol",
|
|
124
|
+
"value": [
|
|
125
|
+
-236.74150822442644
|
|
126
|
+
],
|
|
127
|
+
"unit": "kg*m**2/K/mol/s**2",
|
|
128
|
+
"unknown_units": false
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": 288,
|
|
132
|
+
"name": "fs.Compound Separator 21_21.mixed_state[0.0].total_energy_flow",
|
|
133
|
+
"value": [
|
|
134
|
+
-5310363.33138172
|
|
135
|
+
],
|
|
136
|
+
"unit": "kg*m**2/s**3",
|
|
137
|
+
"unknown_units": false
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": 291,
|
|
141
|
+
"name": "fs.Compound Separator 21_21.outlet_1_state[0.0].flow_mol",
|
|
142
|
+
"value": [
|
|
143
|
+
24.806021022154543
|
|
144
|
+
],
|
|
145
|
+
"unit": "mol/s",
|
|
146
|
+
"unknown_units": false
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"id": 293,
|
|
150
|
+
"name": "fs.Compound Separator 21_21.outlet_1_state[0.0].pressure",
|
|
151
|
+
"value": [
|
|
152
|
+
101325.0
|
|
153
|
+
],
|
|
154
|
+
"unit": "kg/m/s**2",
|
|
155
|
+
"unknown_units": false
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id": 296,
|
|
159
|
+
"name": "fs.Compound Separator 21_21.outlet_1_state[0.0].enth_mass",
|
|
160
|
+
"value": [
|
|
161
|
+
-4490134.401609933
|
|
162
|
+
],
|
|
163
|
+
"unit": "m**2/s**2",
|
|
164
|
+
"unknown_units": false
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"id": 295,
|
|
168
|
+
"name": "fs.Compound Separator 21_21.outlet_1_state[0.0].enth_mol",
|
|
169
|
+
"value": [
|
|
170
|
+
-155668.4799200879
|
|
171
|
+
],
|
|
172
|
+
"unit": "kg*m**2/mol/s**2",
|
|
173
|
+
"unknown_units": false
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"id": 315,
|
|
177
|
+
"name": "fs.Compound Separator 21_21.outlet_1_state[0.0].mole_frac_comp[water]",
|
|
178
|
+
"value": [
|
|
179
|
+
0.3614453528902069
|
|
180
|
+
],
|
|
181
|
+
"unit": "dimensionless",
|
|
182
|
+
"unknown_units": false
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"id": 320,
|
|
186
|
+
"name": "fs.Compound Separator 21_21.outlet_1_state[0.0].mole_frac_comp[propane]",
|
|
187
|
+
"value": [
|
|
188
|
+
0.638554647109793
|
|
189
|
+
],
|
|
190
|
+
"unit": "dimensionless",
|
|
191
|
+
"unknown_units": false
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"id": 292,
|
|
195
|
+
"name": "fs.Compound Separator 21_21.outlet_1_state[0.0].temperature",
|
|
196
|
+
"value": [
|
|
197
|
+
275.15
|
|
198
|
+
],
|
|
199
|
+
"unit": "K",
|
|
200
|
+
"unknown_units": false
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"id": 294,
|
|
204
|
+
"name": "fs.Compound Separator 21_21.outlet_1_state[0.0].vapor_frac",
|
|
205
|
+
"value": [
|
|
206
|
+
0.999999998683975
|
|
207
|
+
],
|
|
208
|
+
"unit": "dimensionless",
|
|
209
|
+
"unknown_units": false
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"id": 290,
|
|
213
|
+
"name": "fs.Compound Separator 21_21.outlet_1_state[0.0].flow_mass",
|
|
214
|
+
"value": [
|
|
215
|
+
0.8600000000000002
|
|
216
|
+
],
|
|
217
|
+
"unit": "kg/s",
|
|
218
|
+
"unknown_units": false
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": 300,
|
|
222
|
+
"name": "fs.Compound Separator 21_21.outlet_1_state[0.0].flow_vol",
|
|
223
|
+
"value": [
|
|
224
|
+
0.551561339920649
|
|
225
|
+
],
|
|
226
|
+
"unit": "m**3/s",
|
|
227
|
+
"unknown_units": false
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"id": 298,
|
|
231
|
+
"name": "fs.Compound Separator 21_21.outlet_1_state[0.0].entr_mass",
|
|
232
|
+
"value": [
|
|
233
|
+
-6927.248853011995
|
|
234
|
+
],
|
|
235
|
+
"unit": "m**2/K/s**2",
|
|
236
|
+
"unknown_units": false
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"id": 297,
|
|
240
|
+
"name": "fs.Compound Separator 21_21.outlet_1_state[0.0].entr_mol",
|
|
241
|
+
"value": [
|
|
242
|
+
-240.1608064537906
|
|
243
|
+
],
|
|
244
|
+
"unit": "kg*m**2/K/mol/s**2",
|
|
245
|
+
"unknown_units": false
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"id": 299,
|
|
249
|
+
"name": "fs.Compound Separator 21_21.outlet_1_state[0.0].total_energy_flow",
|
|
250
|
+
"value": [
|
|
251
|
+
-3861515.5853845435
|
|
252
|
+
],
|
|
253
|
+
"unit": "kg*m**2/s**3",
|
|
254
|
+
"unknown_units": false
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"id": 302,
|
|
258
|
+
"name": "fs.Compound Separator 21_21.outlet_2_state[0.0].flow_mol",
|
|
259
|
+
"value": [
|
|
260
|
+
8.193978977845461
|
|
261
|
+
],
|
|
262
|
+
"unit": "mol/s",
|
|
263
|
+
"unknown_units": false
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"id": 304,
|
|
267
|
+
"name": "fs.Compound Separator 21_21.outlet_2_state[0.0].pressure",
|
|
268
|
+
"value": [
|
|
269
|
+
101325.0
|
|
270
|
+
],
|
|
271
|
+
"unit": "kg/m/s**2",
|
|
272
|
+
"unknown_units": false
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"id": 307,
|
|
276
|
+
"name": "fs.Compound Separator 21_21.outlet_2_state[0.0].enth_mass",
|
|
277
|
+
"value": [
|
|
278
|
+
-5774791.913231724
|
|
279
|
+
],
|
|
280
|
+
"unit": "m**2/s**2",
|
|
281
|
+
"unknown_units": false
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"id": 306,
|
|
285
|
+
"name": "fs.Compound Separator 21_21.outlet_2_state[0.0].enth_mol",
|
|
286
|
+
"value": [
|
|
287
|
+
-176820.84116806768
|
|
288
|
+
],
|
|
289
|
+
"unit": "kg*m**2/mol/s**2",
|
|
290
|
+
"unknown_units": false
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"id": 316,
|
|
294
|
+
"name": "fs.Compound Separator 21_21.outlet_2_state[0.0].mole_frac_comp[water]",
|
|
295
|
+
"value": [
|
|
296
|
+
0.5167183110053267
|
|
297
|
+
],
|
|
298
|
+
"unit": "dimensionless",
|
|
299
|
+
"unknown_units": false
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"id": 321,
|
|
303
|
+
"name": "fs.Compound Separator 21_21.outlet_2_state[0.0].mole_frac_comp[propane]",
|
|
304
|
+
"value": [
|
|
305
|
+
0.4832816889946732
|
|
306
|
+
],
|
|
307
|
+
"unit": "dimensionless",
|
|
308
|
+
"unknown_units": false
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"id": 303,
|
|
312
|
+
"name": "fs.Compound Separator 21_21.outlet_2_state[0.0].temperature",
|
|
313
|
+
"value": [
|
|
314
|
+
275.15
|
|
315
|
+
],
|
|
316
|
+
"unit": "K",
|
|
317
|
+
"unknown_units": false
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"id": 305,
|
|
321
|
+
"name": "fs.Compound Separator 21_21.outlet_2_state[0.0].vapor_frac",
|
|
322
|
+
"value": [
|
|
323
|
+
0.9999999998804378
|
|
324
|
+
],
|
|
325
|
+
"unit": "dimensionless",
|
|
326
|
+
"unknown_units": false
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"id": 301,
|
|
330
|
+
"name": "fs.Compound Separator 21_21.outlet_2_state[0.0].flow_mass",
|
|
331
|
+
"value": [
|
|
332
|
+
0.25089497199999966
|
|
333
|
+
],
|
|
334
|
+
"unit": "kg/s",
|
|
335
|
+
"unknown_units": false
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"id": 311,
|
|
339
|
+
"name": "fs.Compound Separator 21_21.outlet_2_state[0.0].flow_vol",
|
|
340
|
+
"value": [
|
|
341
|
+
0.182318542479707
|
|
342
|
+
],
|
|
343
|
+
"unit": "m**3/s",
|
|
344
|
+
"unknown_units": false
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"id": 309,
|
|
348
|
+
"name": "fs.Compound Separator 21_21.outlet_2_state[0.0].entr_mass",
|
|
349
|
+
"value": [
|
|
350
|
+
-7403.946605939411
|
|
351
|
+
],
|
|
352
|
+
"unit": "m**2/K/s**2",
|
|
353
|
+
"unknown_units": false
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"id": 308,
|
|
357
|
+
"name": "fs.Compound Separator 21_21.outlet_2_state[0.0].entr_mol",
|
|
358
|
+
"value": [
|
|
359
|
+
-226.70463048650694
|
|
360
|
+
],
|
|
361
|
+
"unit": "kg*m**2/K/mol/s**2",
|
|
362
|
+
"unknown_units": false
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"id": 310,
|
|
366
|
+
"name": "fs.Compound Separator 21_21.outlet_2_state[0.0].total_energy_flow",
|
|
367
|
+
"value": [
|
|
368
|
+
-1448866.2553760977
|
|
369
|
+
],
|
|
370
|
+
"unit": "kg*m**2/s**3",
|
|
371
|
+
"unknown_units": false
|
|
372
|
+
}
|
|
373
|
+
]
|
|
374
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 0,
|
|
3
|
+
"name": "compressor_test",
|
|
4
|
+
"dynamic": false,
|
|
5
|
+
"property_packages": [],
|
|
6
|
+
"unit_models": [
|
|
7
|
+
{
|
|
8
|
+
"id": 3,
|
|
9
|
+
"type": "compressor",
|
|
10
|
+
"name": "Compressor-1",
|
|
11
|
+
"args": {
|
|
12
|
+
"property_package": -1,
|
|
13
|
+
"power_property_package": "m.fs.PoP"
|
|
14
|
+
},
|
|
15
|
+
"properties": {
|
|
16
|
+
"deltaP": { "data": [ { "id": 1, "value": 50000 } ], "unit": "Pa" },
|
|
17
|
+
"efficiency_isentropic": { "data": [ { "id": 2, "value": 0.9 } ], "unit": null }
|
|
18
|
+
},
|
|
19
|
+
"ports": {
|
|
20
|
+
"inlet": {
|
|
21
|
+
"id": 1,
|
|
22
|
+
"properties": {
|
|
23
|
+
"pressure": { "data": [ { "id": 3, "value": 101325 } ], "unit": "Pa" },
|
|
24
|
+
"enth_mol": { "data": [ { "id": 4, "value": 4000 } ], "unit": "J/mol" },
|
|
25
|
+
"flow_mol": { "data": [ { "id": 5, "value": 100 } ], "unit": "mol/s" },
|
|
26
|
+
"mole_frac_comp": { "data": [ { "discrete_indexes":["h2o"], "id": 6, "value": 1 } ], "unit": null },
|
|
27
|
+
"temperature": { "data": [ { "id": 7 } ] }
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"outlet": {
|
|
31
|
+
"id": 2,
|
|
32
|
+
"properties": {}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"arcs": []
|
|
38
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 0,
|
|
3
|
+
"properties": [
|
|
4
|
+
{
|
|
5
|
+
"id": 1,
|
|
6
|
+
"name": "fs.Compressor-1_3.control_volume.deltaP[0.0]",
|
|
7
|
+
"value": [
|
|
8
|
+
50000.0
|
|
9
|
+
],
|
|
10
|
+
"unit": "kg/m/s**2",
|
|
11
|
+
"unknown_units": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": 2,
|
|
15
|
+
"name": "fs.Compressor-1_3.efficiency_isentropic[0.0]",
|
|
16
|
+
"value": [
|
|
17
|
+
0.9
|
|
18
|
+
],
|
|
19
|
+
"unit": "dimensionless",
|
|
20
|
+
"unknown_units": false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": 3,
|
|
24
|
+
"name": "fs.Compressor-1_3.control_volume.properties_in[0.0].pressure",
|
|
25
|
+
"value": [
|
|
26
|
+
101325.0
|
|
27
|
+
],
|
|
28
|
+
"unit": "Pa",
|
|
29
|
+
"unknown_units": false
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": 4,
|
|
33
|
+
"name": "fs.Compressor-1_3.control_volume.properties_in[0.0].enth_mol",
|
|
34
|
+
"value": [
|
|
35
|
+
4000.0
|
|
36
|
+
],
|
|
37
|
+
"unit": "J/mol",
|
|
38
|
+
"unknown_units": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": 5,
|
|
42
|
+
"name": "fs.Compressor-1_3.control_volume.properties_in[0.0].flow_mol",
|
|
43
|
+
"value": [
|
|
44
|
+
100.0
|
|
45
|
+
],
|
|
46
|
+
"unit": "mol/s",
|
|
47
|
+
"unknown_units": false
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": 6,
|
|
51
|
+
"name": "fs.Compressor-1_3.control_volume.properties_in[0.0].mole_frac_comp[h2o]",
|
|
52
|
+
"value": [
|
|
53
|
+
1.0
|
|
54
|
+
],
|
|
55
|
+
"unit": "dimensionless",
|
|
56
|
+
"unknown_units": false
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": 7,
|
|
60
|
+
"name": "fs.Compressor-1_3.control_volume.properties_in[0.0].temperature",
|
|
61
|
+
"value": [
|
|
62
|
+
326.17074287074416
|
|
63
|
+
],
|
|
64
|
+
"unit": "K",
|
|
65
|
+
"unknown_units": false
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 0,
|
|
3
|
+
"name": "constraint_test",
|
|
4
|
+
"description": "tests for a equality constraint using an expression",
|
|
5
|
+
"dynamic": false,
|
|
6
|
+
"property_packages": [],
|
|
7
|
+
"unit_models": [
|
|
8
|
+
{
|
|
9
|
+
"id": 3,
|
|
10
|
+
"type": "compressor",
|
|
11
|
+
"name": "Compressor1",
|
|
12
|
+
"args": {
|
|
13
|
+
"property_package": -1
|
|
14
|
+
},
|
|
15
|
+
"properties": {
|
|
16
|
+
"efficiency_isentropic": { "data": [ { "id": 125, "value": 0.9 } ], "unit": null }
|
|
17
|
+
},
|
|
18
|
+
"ports": {
|
|
19
|
+
"inlet": {
|
|
20
|
+
"id": 1,
|
|
21
|
+
"properties": {
|
|
22
|
+
"pressure": { "data": [ { "id": 126, "value": 101325,"guess": true, "constraint": "sqrt(id_130 ^ 2)" } ], "unit": "Pa" },
|
|
23
|
+
"enth_mol": { "data": [ { "id": 127, "value": 4000 } ], "unit": "J/mol" },
|
|
24
|
+
"flow_mol": { "data": [ { "id": 128, "value": 100 } ], "unit": "mol/s" }
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"outlet": {
|
|
28
|
+
"id": 2,
|
|
29
|
+
"properties": {
|
|
30
|
+
"pressure": { "data": [ { "id": 129, "value": 200, "guess": true, "constraint": "id_130 * 2" } ], "unit": "kPa" }
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"arcs": [],
|
|
37
|
+
"expressions":[
|
|
38
|
+
{
|
|
39
|
+
"id": 130,
|
|
40
|
+
"name": "Expression to check if units are converted properly too.",
|
|
41
|
+
"expression": "101.325 * kPa"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 0,
|
|
3
|
+
"properties": [
|
|
4
|
+
{
|
|
5
|
+
"id": 125,
|
|
6
|
+
"name": "fs.Compressor1_3.efficiency_isentropic[0.0]",
|
|
7
|
+
"value": [
|
|
8
|
+
0.9
|
|
9
|
+
],
|
|
10
|
+
"unit": "dimensionless",
|
|
11
|
+
"unknown_units": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": 126,
|
|
15
|
+
"name": "fs.Compressor1_3.control_volume.properties_in[0.0].pressure",
|
|
16
|
+
"value": [
|
|
17
|
+
101325.0
|
|
18
|
+
],
|
|
19
|
+
"unit": "Pa",
|
|
20
|
+
"unknown_units": false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": 127,
|
|
24
|
+
"name": "fs.Compressor1_3.control_volume.properties_in[0.0].enth_mol",
|
|
25
|
+
"value": [
|
|
26
|
+
4000.0
|
|
27
|
+
],
|
|
28
|
+
"unit": "J/mol",
|
|
29
|
+
"unknown_units": false
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": 128,
|
|
33
|
+
"name": "fs.Compressor1_3.control_volume.properties_in[0.0].flow_mol",
|
|
34
|
+
"value": [
|
|
35
|
+
100.0
|
|
36
|
+
],
|
|
37
|
+
"unit": "mol/s",
|
|
38
|
+
"unknown_units": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": 129,
|
|
42
|
+
"name": "fs.Compressor1_3.control_volume.properties_out[0.0].pressure",
|
|
43
|
+
"value": [
|
|
44
|
+
202650.0
|
|
45
|
+
],
|
|
46
|
+
"unit": "Pa",
|
|
47
|
+
"unknown_units": false
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": 130,
|
|
51
|
+
"name": "fs.'Expression to check if units are converted properly too._130'",
|
|
52
|
+
"value": [
|
|
53
|
+
101325.0
|
|
54
|
+
],
|
|
55
|
+
"unit": "kg/m/s**2",
|
|
56
|
+
"unknown_units": true
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 0,
|
|
3
|
+
"name": "control_test",
|
|
4
|
+
"description": "inlet enthalpy is controlled by the set point of the outlet enthalpy",
|
|
5
|
+
"dynamic": false,
|
|
6
|
+
"property_packages": [],
|
|
7
|
+
"unit_models": [
|
|
8
|
+
{
|
|
9
|
+
"id": 3,
|
|
10
|
+
"name": "Compressor-1",
|
|
11
|
+
"type": "compressor",
|
|
12
|
+
"args": {
|
|
13
|
+
"property_package": -1
|
|
14
|
+
},
|
|
15
|
+
"properties": {
|
|
16
|
+
"deltaP": { "data": [ { "id": 1, "value": [50000] } ], "unit": "Pa" },
|
|
17
|
+
"efficiency_isentropic": { "data": [ { "id": 2, "value": 0.9 } ], "unit": null }
|
|
18
|
+
},
|
|
19
|
+
"ports": {
|
|
20
|
+
"inlet": {
|
|
21
|
+
"id": 1,
|
|
22
|
+
"properties": {
|
|
23
|
+
"pressure": { "data": [ { "id": 3, "value": [101325] } ], "unit": "Pa" },
|
|
24
|
+
"enth_mol": { "data": [ { "id": 4, "value": [4000], "guess": true } ], "unit": "J/mol" },
|
|
25
|
+
"flow_mol": { "data": [ { "id": 5, "value": [100],"guess":true } ], "unit": "mol/s" }
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"outlet": {
|
|
29
|
+
"id": 2,
|
|
30
|
+
"properties": {
|
|
31
|
+
"enth_mol": { "data": [ { "id": 6, "value": [6000], "controlled": 4 } ], "unit": "J/mol" },
|
|
32
|
+
"flow_mol": { "data": [ { "id": 7, "value": [100],"controlled": 5 } ], "unit": "mol/s" }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"arcs": []
|
|
39
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 0,
|
|
3
|
+
"properties": [
|
|
4
|
+
{
|
|
5
|
+
"id": 1,
|
|
6
|
+
"name": "fs.Compressor-1_3.control_volume.deltaP[0.0]",
|
|
7
|
+
"value": [
|
|
8
|
+
50000.0
|
|
9
|
+
],
|
|
10
|
+
"unit": "kg/m/s**2",
|
|
11
|
+
"unknown_units": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": 2,
|
|
15
|
+
"name": "fs.Compressor-1_3.efficiency_isentropic[0.0]",
|
|
16
|
+
"value": [
|
|
17
|
+
0.9
|
|
18
|
+
],
|
|
19
|
+
"unit": "dimensionless",
|
|
20
|
+
"unknown_units": false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": 3,
|
|
24
|
+
"name": "fs.Compressor-1_3.control_volume.properties_in[0.0].pressure",
|
|
25
|
+
"value": [
|
|
26
|
+
101325.0
|
|
27
|
+
],
|
|
28
|
+
"unit": "Pa",
|
|
29
|
+
"unknown_units": false
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": 4,
|
|
33
|
+
"name": "fs.Compressor-1_3.control_volume.properties_in[0.0].enth_mol",
|
|
34
|
+
"value": [
|
|
35
|
+
5998.970433371995
|
|
36
|
+
],
|
|
37
|
+
"unit": "J/mol",
|
|
38
|
+
"unknown_units": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": 5,
|
|
42
|
+
"name": "fs.Compressor-1_3.control_volume.properties_in[0.0].flow_mol",
|
|
43
|
+
"value": [
|
|
44
|
+
100.0
|
|
45
|
+
],
|
|
46
|
+
"unit": "mol/s",
|
|
47
|
+
"unknown_units": false
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": 6,
|
|
51
|
+
"name": "fs.Compressor-1_3.control_volume.properties_out[0.0].enth_mol",
|
|
52
|
+
"value": [
|
|
53
|
+
6000.0
|
|
54
|
+
],
|
|
55
|
+
"unit": "J/mol",
|
|
56
|
+
"unknown_units": false
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": 7,
|
|
60
|
+
"name": "fs.Compressor-1_3.control_volume.properties_out[0.0].flow_mol",
|
|
61
|
+
"value": [
|
|
62
|
+
100.0
|
|
63
|
+
],
|
|
64
|
+
"unit": "mol/s",
|
|
65
|
+
"unknown_units": false
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|