exerpy 0.0.1__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 (44) hide show
  1. exerpy/__init__.py +12 -0
  2. exerpy/analyses.py +1711 -0
  3. exerpy/components/__init__.py +16 -0
  4. exerpy/components/combustion/__init__.py +0 -0
  5. exerpy/components/combustion/base.py +248 -0
  6. exerpy/components/component.py +126 -0
  7. exerpy/components/heat_exchanger/__init__.py +0 -0
  8. exerpy/components/heat_exchanger/base.py +449 -0
  9. exerpy/components/heat_exchanger/condenser.py +323 -0
  10. exerpy/components/heat_exchanger/simple.py +358 -0
  11. exerpy/components/heat_exchanger/steam_generator.py +264 -0
  12. exerpy/components/helpers/__init__.py +0 -0
  13. exerpy/components/helpers/cycle_closer.py +104 -0
  14. exerpy/components/nodes/__init__.py +0 -0
  15. exerpy/components/nodes/deaerator.py +318 -0
  16. exerpy/components/nodes/drum.py +164 -0
  17. exerpy/components/nodes/flash_tank.py +89 -0
  18. exerpy/components/nodes/mixer.py +332 -0
  19. exerpy/components/piping/__init__.py +0 -0
  20. exerpy/components/piping/valve.py +394 -0
  21. exerpy/components/power_machines/__init__.py +0 -0
  22. exerpy/components/power_machines/generator.py +168 -0
  23. exerpy/components/power_machines/motor.py +173 -0
  24. exerpy/components/turbomachinery/__init__.py +0 -0
  25. exerpy/components/turbomachinery/compressor.py +318 -0
  26. exerpy/components/turbomachinery/pump.py +310 -0
  27. exerpy/components/turbomachinery/turbine.py +351 -0
  28. exerpy/data/Ahrendts.json +90 -0
  29. exerpy/functions.py +637 -0
  30. exerpy/parser/__init__.py +0 -0
  31. exerpy/parser/from_aspen/__init__.py +0 -0
  32. exerpy/parser/from_aspen/aspen_config.py +61 -0
  33. exerpy/parser/from_aspen/aspen_parser.py +721 -0
  34. exerpy/parser/from_ebsilon/__init__.py +38 -0
  35. exerpy/parser/from_ebsilon/check_ebs_path.py +74 -0
  36. exerpy/parser/from_ebsilon/ebsilon_config.py +1055 -0
  37. exerpy/parser/from_ebsilon/ebsilon_functions.py +181 -0
  38. exerpy/parser/from_ebsilon/ebsilon_parser.py +660 -0
  39. exerpy/parser/from_ebsilon/utils.py +79 -0
  40. exerpy/parser/from_tespy/tespy_config.py +23 -0
  41. exerpy-0.0.1.dist-info/METADATA +158 -0
  42. exerpy-0.0.1.dist-info/RECORD +44 -0
  43. exerpy-0.0.1.dist-info/WHEEL +4 -0
  44. exerpy-0.0.1.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,61 @@
1
+ # Define the component groups via AttributeValue(6) and other ways
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'],
16
+ }
17
+
18
+ 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
24
+ },
25
+ 'Compressor': {
26
+ 'F(IN)': 0, # inlet gas flow
27
+ 'P(OUT)': 0, # outlet gas flow
28
+ 'WS(OUT)': 1 # outlet work flow
29
+ },
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
35
+ },
36
+ 'Heater': {
37
+ 'F(IN)': 0, # inlet stream
38
+ 'P(OUT)': 0, # outlet stream
39
+ },
40
+ 'Generator': {
41
+ 'WS(IN)': 0, # inlet work flow
42
+ 'WS(OUT)': 0, # outlet work flow
43
+ },
44
+ 'Pump': {
45
+ 'F(IN)': 0, # inlet work flow
46
+ 'P(OUT)': 0, # outlet work flow
47
+ },
48
+ 'Motor': {
49
+ 'WS(IN)': 0, # inlet work flow
50
+ 'WS(OUT)': 0, # outlet work flow
51
+ },
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
60
+ }
61
+