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