exerpy 0.0.1__py3-none-any.whl → 0.0.3__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.
- exerpy/__init__.py +2 -4
- exerpy/analyses.py +597 -297
- exerpy/components/__init__.py +3 -0
- exerpy/components/combustion/base.py +157 -114
- exerpy/components/component.py +8 -8
- exerpy/components/heat_exchanger/base.py +593 -256
- exerpy/components/heat_exchanger/condenser.py +353 -166
- exerpy/components/heat_exchanger/simple.py +575 -225
- exerpy/components/heat_exchanger/steam_generator.py +153 -123
- exerpy/components/helpers/cycle_closer.py +61 -34
- exerpy/components/helpers/power_bus.py +117 -0
- exerpy/components/nodes/deaerator.py +221 -102
- exerpy/components/nodes/drum.py +50 -39
- exerpy/components/nodes/flash_tank.py +218 -43
- exerpy/components/nodes/mixer.py +296 -115
- exerpy/components/nodes/splitter.py +173 -0
- exerpy/components/nodes/storage.py +130 -0
- exerpy/components/piping/valve.py +351 -139
- exerpy/components/power_machines/generator.py +105 -38
- exerpy/components/power_machines/motor.py +111 -39
- exerpy/components/turbomachinery/compressor.py +181 -63
- exerpy/components/turbomachinery/pump.py +182 -63
- exerpy/components/turbomachinery/turbine.py +182 -74
- exerpy/functions.py +388 -263
- exerpy/parser/from_aspen/aspen_config.py +57 -48
- exerpy/parser/from_aspen/aspen_parser.py +373 -280
- exerpy/parser/from_ebsilon/__init__.py +2 -2
- exerpy/parser/from_ebsilon/check_ebs_path.py +15 -19
- exerpy/parser/from_ebsilon/ebsilon_config.py +329 -227
- exerpy/parser/from_ebsilon/ebsilon_functions.py +205 -38
- exerpy/parser/from_ebsilon/ebsilon_parser.py +392 -255
- exerpy/parser/from_ebsilon/utils.py +16 -11
- exerpy/parser/from_tespy/tespy_config.py +32 -1
- exerpy/parser/from_tespy/tespy_parser.py +151 -0
- {exerpy-0.0.1.dist-info → exerpy-0.0.3.dist-info}/METADATA +45 -4
- exerpy-0.0.3.dist-info/RECORD +48 -0
- exerpy-0.0.1.dist-info/RECORD +0 -44
- {exerpy-0.0.1.dist-info → exerpy-0.0.3.dist-info}/WHEEL +0 -0
- {exerpy-0.0.1.dist-info → exerpy-0.0.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,61 +1,70 @@
|
|
|
1
1
|
# Define the component groups via AttributeValue(6) and other ways
|
|
2
2
|
grouped_components = {
|
|
3
|
-
"Turbine": [
|
|
4
|
-
"HeatExchanger": [
|
|
5
|
-
"CombustionChamber": [
|
|
6
|
-
"Valve": [
|
|
7
|
-
"Pump": [
|
|
8
|
-
"Compressor": [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"Generator": ['Gen'],
|
|
15
|
-
"Motor": ['Motor'],
|
|
3
|
+
"Turbine": ["Compr"],
|
|
4
|
+
"HeatExchanger": ["HeatX"],
|
|
5
|
+
"CombustionChamber": ["RStoic"],
|
|
6
|
+
"Valve": ["Valve"],
|
|
7
|
+
"Pump": ["Pump"],
|
|
8
|
+
"Compressor": ["Compr"],
|
|
9
|
+
"SimpleHeatExchanger": ["Heater"],
|
|
10
|
+
"Mixer": ["Mixer"],
|
|
11
|
+
"Splitter": ["FSplit"],
|
|
12
|
+
"Generator": ["Gen"],
|
|
13
|
+
"Motor": ["Motor"],
|
|
16
14
|
}
|
|
15
|
+
"""
|
|
16
|
+
This is the mapping of component groups to their respective component IDs:
|
|
17
|
+
|
|
18
|
+
- "Turbine": ['Compr'],
|
|
19
|
+
- "HeatExchanger": ['HeatX'],
|
|
20
|
+
- "CombustionChamber": ['RStoic'],
|
|
21
|
+
- "Valve": ['Valve'],
|
|
22
|
+
- "Pump": ['Pump'],
|
|
23
|
+
- "Compressor": ['Compr'],
|
|
24
|
+
- "SimpleHeatExchanger": ['Heater'],
|
|
25
|
+
- "Mixer": ['Mixer'],
|
|
26
|
+
- "Splitter": ['FSplit'],
|
|
27
|
+
- "Generator": ['Gen'],
|
|
28
|
+
- "Motor": ['Motor']
|
|
29
|
+
|
|
30
|
+
"""
|
|
17
31
|
|
|
18
32
|
connector_mappings = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
"Turbine": {
|
|
34
|
+
"F(IN)": 0, # inlet gas flow
|
|
35
|
+
"P(OUT)": 0, # outlet gas flow
|
|
36
|
+
"WS(IN)": 1, # inlet work flow (e.g. from compressor)
|
|
37
|
+
"WS(OUT)": 1, # outlet work flow
|
|
24
38
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
39
|
+
"Compressor": {"F(IN)": 0, "P(OUT)": 0, "WS(OUT)": 1}, # inlet gas flow # outlet gas flow # outlet work flow
|
|
40
|
+
"HeatX": {
|
|
41
|
+
"C(IN)": 1, # inlet cold stream
|
|
42
|
+
"C(OUT)": 1, # outlet cold stream
|
|
43
|
+
"H(IN)": 0, # inlet hot stream
|
|
44
|
+
"H(OUT)": 0, # outlet hot stream
|
|
29
45
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
'H(IN)': 0, # inlet hot stream
|
|
34
|
-
'H(OUT)': 0 # outlet hot stream
|
|
46
|
+
"Heater": {
|
|
47
|
+
"F(IN)": 0, # inlet stream
|
|
48
|
+
"P(OUT)": 0, # outlet stream
|
|
35
49
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
50
|
+
"Generator": {
|
|
51
|
+
"WS(IN)": 0, # inlet work flow
|
|
52
|
+
"WS(OUT)": 0, # outlet work flow
|
|
39
53
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
54
|
+
"Pump": {
|
|
55
|
+
"F(IN)": 0, # inlet work flow
|
|
56
|
+
"P(OUT)": 0, # outlet work flow
|
|
43
57
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
"Motor": {
|
|
59
|
+
"WS(IN)": 0, # inlet work flow
|
|
60
|
+
"WS(OUT)": 0, # outlet work flow
|
|
47
61
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
62
|
+
"Valve": {
|
|
63
|
+
"F(IN)": 0, # inlet stream
|
|
64
|
+
"P(OUT)": 0, # outlet stream
|
|
51
65
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
# Following components need extra functions because they have multiple inputs/outputs:
|
|
57
|
-
# Splitter,
|
|
58
|
-
# Combustion Chamber,
|
|
59
|
-
# Deaerator
|
|
66
|
+
# Following components need extra functions because they have multiple inputs/outputs:
|
|
67
|
+
# Splitter,
|
|
68
|
+
# Combustion Chamber,
|
|
69
|
+
# Deaerator
|
|
60
70
|
}
|
|
61
|
-
|