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,63 @@
|
|
|
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
|
+
},
|
|
17
|
+
"ports": {
|
|
18
|
+
"inlet": {
|
|
19
|
+
"id": 1,
|
|
20
|
+
"properties": {
|
|
21
|
+
"pressure": { "data": [ { "id": 2, "value": 108.56155934 } ], "unit": "atm" },
|
|
22
|
+
"enth_mol": { "data": [ { "id": 3, "value": 29.8757 } ], "unit": "cal/mol" },
|
|
23
|
+
"flow_mol": { "data": [ { "id": 4, "value": 25860 } ], "unit": "mol/min" }
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"outlet": {
|
|
27
|
+
"id": 3,
|
|
28
|
+
"properties":{
|
|
29
|
+
"pressure": { "data": [ { "id": 5, "value": 220 } ], "unit": "bar" }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": 9,
|
|
36
|
+
"type": "heater",
|
|
37
|
+
"name": "Heater-1",
|
|
38
|
+
"args": {
|
|
39
|
+
"property_package": -1
|
|
40
|
+
},
|
|
41
|
+
"properties": {
|
|
42
|
+
"heat_duty": { "data": [ { "id": 6, "value": 0.1 } ], "unit": "kJ/s" }
|
|
43
|
+
},
|
|
44
|
+
"ports": {
|
|
45
|
+
"inlet": {
|
|
46
|
+
"id": 2,
|
|
47
|
+
"properties": {}
|
|
48
|
+
},
|
|
49
|
+
"outlet": {
|
|
50
|
+
"id": 4,
|
|
51
|
+
"properties": {}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"arcs": [
|
|
57
|
+
{
|
|
58
|
+
"id": 7,
|
|
59
|
+
"source": 3,
|
|
60
|
+
"destination": 2
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 0,
|
|
3
|
+
"name": "test_recycle",
|
|
4
|
+
"description": "Simple compressor unit connected back onto itself",
|
|
5
|
+
"dynamic": false,
|
|
6
|
+
"property_packages": [],
|
|
7
|
+
"unit_models": [
|
|
8
|
+
{
|
|
9
|
+
"id": 8,
|
|
10
|
+
"type": "compressor",
|
|
11
|
+
"name": "Compressor-1",
|
|
12
|
+
"args": {
|
|
13
|
+
"property_package": -1,
|
|
14
|
+
"power_property_package": "m.fs.PoP"
|
|
15
|
+
},
|
|
16
|
+
"properties": {
|
|
17
|
+
"efficiency_isentropic": { "data": [ { "id": 1, "value": 1 } ], "unit": "dimensionless" }
|
|
18
|
+
},
|
|
19
|
+
"ports": {
|
|
20
|
+
"inlet": {
|
|
21
|
+
"id": 1,
|
|
22
|
+
"properties": {
|
|
23
|
+
"flow_mol": { "data": [ { "id": 2, "value": 1 } ], "unit": "mol/s" },
|
|
24
|
+
"pressure": { "data": [ { "id": 3, "value": 105 } ], "unit": "kPa" },
|
|
25
|
+
"enth_mol": { "data": [ { "id": 4, "value": 10.541 } ], "unit": "J/mol" }
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"outlet": {
|
|
29
|
+
"id": 3,
|
|
30
|
+
"properties": {
|
|
31
|
+
"pressure": { "data": [ { "id": 5, "value": 110 } ], "unit": "kPa" }
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"arcs": [
|
|
38
|
+
{
|
|
39
|
+
"id": 7,
|
|
40
|
+
"source": 3,
|
|
41
|
+
"destination": 1,
|
|
42
|
+
"tear_guess": {
|
|
43
|
+
"pressure": false,
|
|
44
|
+
"enth_mol": true,
|
|
45
|
+
"flow_mol": true
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 0,
|
|
3
|
+
"properties": [
|
|
4
|
+
{
|
|
5
|
+
"id": 1,
|
|
6
|
+
"name": "fs.Compressor-1_8.efficiency_isentropic[0.0]",
|
|
7
|
+
"value": [
|
|
8
|
+
1.0
|
|
9
|
+
],
|
|
10
|
+
"unit": "dimensionless",
|
|
11
|
+
"unknown_units": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": 2,
|
|
15
|
+
"name": "fs.Compressor-1_8.control_volume.properties_in[0.0].flow_mol",
|
|
16
|
+
"value": [
|
|
17
|
+
1.0
|
|
18
|
+
],
|
|
19
|
+
"unit": "mol/s",
|
|
20
|
+
"unknown_units": false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": 3,
|
|
24
|
+
"name": "fs.Compressor-1_8.control_volume.properties_in[0.0].pressure",
|
|
25
|
+
"value": [
|
|
26
|
+
110000.0
|
|
27
|
+
],
|
|
28
|
+
"unit": "Pa",
|
|
29
|
+
"unknown_units": false
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": 4,
|
|
33
|
+
"name": "fs.Compressor-1_8.control_volume.properties_in[0.0].enth_mol",
|
|
34
|
+
"value": [
|
|
35
|
+
10.541
|
|
36
|
+
],
|
|
37
|
+
"unit": "J/mol",
|
|
38
|
+
"unknown_units": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": 5,
|
|
42
|
+
"name": "fs.Compressor-1_8.control_volume.properties_out[0.0].pressure",
|
|
43
|
+
"value": [
|
|
44
|
+
110000.0
|
|
45
|
+
],
|
|
46
|
+
"unit": "Pa",
|
|
47
|
+
"unknown_units": false
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 0,
|
|
3
|
+
"name": "sb_vapor_frac_test",
|
|
4
|
+
"description": "state block with T and x - expect atmopsheric pressure",
|
|
5
|
+
"property_package": {
|
|
6
|
+
"id": 3,
|
|
7
|
+
"type": "helmholtz",
|
|
8
|
+
"compounds": ["h2o"],
|
|
9
|
+
"phases": ["Liq", "Vap"]
|
|
10
|
+
},
|
|
11
|
+
"properties": {
|
|
12
|
+
"temperature": { "data": [{ "id": 1, "value": 373.15 }], "unit": "K" },
|
|
13
|
+
"flow_mol": { "data": [{ "id": 2, "value": 1 }], "unit": "mol/s" },
|
|
14
|
+
"vapor_frac": {
|
|
15
|
+
"data": [{ "id": 3, "value": 0 }],
|
|
16
|
+
"unit": "dimensionless"
|
|
17
|
+
},
|
|
18
|
+
"mole_frac_comp": {
|
|
19
|
+
"data": [
|
|
20
|
+
{
|
|
21
|
+
"discrete_indexes": ["h2o"],
|
|
22
|
+
"id": 4,
|
|
23
|
+
"value": 1.0
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"unit": "dimensionless"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": 1,
|
|
4
|
+
"name": "fs.PP_3_state[0.0].temperature",
|
|
5
|
+
"value": [
|
|
6
|
+
373.1499999999998
|
|
7
|
+
],
|
|
8
|
+
"unit": "K",
|
|
9
|
+
"unknown_units": false
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"id": 2,
|
|
13
|
+
"name": "fs.PP_3_state[0.0].flow_mol",
|
|
14
|
+
"value": [
|
|
15
|
+
1.0
|
|
16
|
+
],
|
|
17
|
+
"unit": "mol/s",
|
|
18
|
+
"unknown_units": false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": 3,
|
|
22
|
+
"name": "fs.PP_3_state[0.0].vapor_frac",
|
|
23
|
+
"value": [
|
|
24
|
+
3.400895710967975e-15
|
|
25
|
+
],
|
|
26
|
+
"unit": "dimensionless",
|
|
27
|
+
"unknown_units": false
|
|
28
|
+
}
|
|
29
|
+
]
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 2,
|
|
3
|
+
"dynamic": false,
|
|
4
|
+
"property_packages": [],
|
|
5
|
+
"unit_models": [
|
|
6
|
+
{
|
|
7
|
+
"id": 25,
|
|
8
|
+
"type": "solar",
|
|
9
|
+
"name": "solar 25",
|
|
10
|
+
"args": {},
|
|
11
|
+
"properties": {
|
|
12
|
+
"efficiency": {
|
|
13
|
+
"data": [{
|
|
14
|
+
"id": 266,
|
|
15
|
+
"value": 95.0,
|
|
16
|
+
"controlled": false,
|
|
17
|
+
"guess": false
|
|
18
|
+
}],
|
|
19
|
+
"unit": "percent"
|
|
20
|
+
},
|
|
21
|
+
"area": {
|
|
22
|
+
"data": [{
|
|
23
|
+
"id": 268,
|
|
24
|
+
"value": 5.0,
|
|
25
|
+
"controlled": false,
|
|
26
|
+
"guess": false
|
|
27
|
+
}],
|
|
28
|
+
"unit": "m^2"
|
|
29
|
+
},
|
|
30
|
+
"irradiation": {
|
|
31
|
+
"data": [ {
|
|
32
|
+
"id": 267,
|
|
33
|
+
"value": 200.0,
|
|
34
|
+
"controlled": false,
|
|
35
|
+
"guess": false
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"unit": "kW/m^2"
|
|
39
|
+
},
|
|
40
|
+
"panel_count": {
|
|
41
|
+
"data": [{
|
|
42
|
+
"id": 269,
|
|
43
|
+
"value": 2.0,
|
|
44
|
+
"controlled": false,
|
|
45
|
+
"guess": false
|
|
46
|
+
}],
|
|
47
|
+
"unit": "dimensionless"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"ports": {
|
|
51
|
+
"outlet": {
|
|
52
|
+
"id": 16,
|
|
53
|
+
"properties": {
|
|
54
|
+
"power": {
|
|
55
|
+
"data": [ {
|
|
56
|
+
"id": 270
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"arcs": [],
|
|
66
|
+
"expressions": []
|
|
67
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 2,
|
|
3
|
+
"properties": [
|
|
4
|
+
{
|
|
5
|
+
"id": 266,
|
|
6
|
+
"name": "fs.solar 25_25.efficiency",
|
|
7
|
+
"value": [
|
|
8
|
+
0.9500000000000001
|
|
9
|
+
],
|
|
10
|
+
"unit": "dimensionless",
|
|
11
|
+
"unknown_units": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": 268,
|
|
15
|
+
"name": "fs.solar 25_25.area",
|
|
16
|
+
"value": [
|
|
17
|
+
5.0
|
|
18
|
+
],
|
|
19
|
+
"unit": "m**2",
|
|
20
|
+
"unknown_units": false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": 267,
|
|
24
|
+
"name": "fs.solar 25_25.irradiation[0.0]",
|
|
25
|
+
"value": [
|
|
26
|
+
200000.0
|
|
27
|
+
],
|
|
28
|
+
"unit": "W/m**2",
|
|
29
|
+
"unknown_units": false
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": 269,
|
|
33
|
+
"name": "fs.solar 25_25.panel_count",
|
|
34
|
+
"value": [
|
|
35
|
+
2.0
|
|
36
|
+
],
|
|
37
|
+
"unit": "dimensionless",
|
|
38
|
+
"unknown_units": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": 270,
|
|
42
|
+
"name": "fs.solar 25_25.properties_out[0.0].power",
|
|
43
|
+
"value": [
|
|
44
|
+
1900000.0
|
|
45
|
+
],
|
|
46
|
+
"unit": "W",
|
|
47
|
+
"unknown_units": false
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 0,
|
|
3
|
+
"name": "vapor_frac_target",
|
|
4
|
+
"description": "compressor_test_with_vapor_fraction - targets an outlet vapor fraction of 1",
|
|
5
|
+
"dynamic": false,
|
|
6
|
+
"property_packages": [],
|
|
7
|
+
"unit_models": [
|
|
8
|
+
{
|
|
9
|
+
"id": 3,
|
|
10
|
+
"type": "compressor",
|
|
11
|
+
"name": "Compressor-1",
|
|
12
|
+
"args": {
|
|
13
|
+
"property_package": -1
|
|
14
|
+
},
|
|
15
|
+
"properties": {
|
|
16
|
+
"efficiency_isentropic": { "data": [ { "id": 1, "value": 0.9 } ], "unit": null }
|
|
17
|
+
},
|
|
18
|
+
"ports": {
|
|
19
|
+
"inlet": {
|
|
20
|
+
"id": 1,
|
|
21
|
+
"properties": {
|
|
22
|
+
"pressure": { "data": [ { "id": 2, "value": 100325 } ], "unit": "Pa" },
|
|
23
|
+
"enth_mol": { "data": [ { "id": 3, "value": 4000 } ], "unit": "J/mol" },
|
|
24
|
+
"flow_mol": { "data": [ { "id": 4, "value": 1 } ], "unit": "mol/s" }
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"outlet": {
|
|
28
|
+
"id": 2,
|
|
29
|
+
"properties": {
|
|
30
|
+
"pressure": { "data": [ { "id": 5, "value": 101325 } ], "unit": "Pa" }
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": 4,
|
|
37
|
+
"type": "heater",
|
|
38
|
+
"name": "Heater-1",
|
|
39
|
+
"args": {
|
|
40
|
+
"property_package": -1,
|
|
41
|
+
"has_pressure_change": true
|
|
42
|
+
},
|
|
43
|
+
"properties": {
|
|
44
|
+
"deltaP": { "data": [ { "id": 6, "value": 0 } ], "unit": "Pa" }
|
|
45
|
+
},
|
|
46
|
+
"ports": {
|
|
47
|
+
"inlet": {
|
|
48
|
+
"id": 3,
|
|
49
|
+
"properties": {}
|
|
50
|
+
},
|
|
51
|
+
"outlet": {
|
|
52
|
+
"id": 4,
|
|
53
|
+
"properties": {
|
|
54
|
+
"vapor_frac": { "data": [ { "id": 7, "value": 1 } ], "unit": "dimensionless" }
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"arcs": [
|
|
61
|
+
{
|
|
62
|
+
"id": 1,
|
|
63
|
+
"source": 2,
|
|
64
|
+
"destination": 3
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 0,
|
|
3
|
+
"properties": [
|
|
4
|
+
{
|
|
5
|
+
"id": 1,
|
|
6
|
+
"name": "fs.Compressor-1_3.efficiency_isentropic[0.0]",
|
|
7
|
+
"value": [
|
|
8
|
+
0.9
|
|
9
|
+
],
|
|
10
|
+
"unit": "dimensionless",
|
|
11
|
+
"unknown_units": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": 2,
|
|
15
|
+
"name": "fs.Compressor-1_3.control_volume.properties_in[0.0].pressure",
|
|
16
|
+
"value": [
|
|
17
|
+
100325.0
|
|
18
|
+
],
|
|
19
|
+
"unit": "Pa",
|
|
20
|
+
"unknown_units": false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"id": 3,
|
|
24
|
+
"name": "fs.Compressor-1_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": 4,
|
|
33
|
+
"name": "fs.Compressor-1_3.control_volume.properties_in[0.0].flow_mol",
|
|
34
|
+
"value": [
|
|
35
|
+
1.0
|
|
36
|
+
],
|
|
37
|
+
"unit": "mol/s",
|
|
38
|
+
"unknown_units": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": 5,
|
|
42
|
+
"name": "fs.Compressor-1_3.control_volume.properties_out[0.0].pressure",
|
|
43
|
+
"value": [
|
|
44
|
+
101325.0
|
|
45
|
+
],
|
|
46
|
+
"unit": "Pa",
|
|
47
|
+
"unknown_units": false
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": 6,
|
|
51
|
+
"name": "fs.Heater-1_4.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.Heater-1_4.control_volume.properties_out[0.0].vapor_frac",
|
|
61
|
+
"value": [
|
|
62
|
+
1.0
|
|
63
|
+
],
|
|
64
|
+
"unit": "dimensionless",
|
|
65
|
+
"unknown_units": false
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|