iTMDpy 1.4.9__tar.gz
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.
- itmdpy-1.4.9/License.txt +52 -0
- itmdpy-1.4.9/PKG-INFO +92 -0
- itmdpy-1.4.9/README.md +78 -0
- itmdpy-1.4.9/pyproject.toml +28 -0
- itmdpy-1.4.9/requirements.txt +6 -0
- itmdpy-1.4.9/src/.gitkeep +0 -0
- itmdpy-1.4.9/src/itmdpy/CompressorDesignTool.py +803 -0
- itmdpy-1.4.9/src/itmdpy/Lib/.gitkeep +0 -0
- itmdpy-1.4.9/src/itmdpy/Lib/CompressorChokeLimit.py +107 -0
- itmdpy-1.4.9/src/itmdpy/Lib/CompressorTFGeometry.py +504 -0
- itmdpy-1.4.9/src/itmdpy/Lib/CompressorVelocityTriangles.py +280 -0
- itmdpy-1.4.9/src/itmdpy/Lib/Diffusor.py +179 -0
- itmdpy-1.4.9/src/itmdpy/Lib/Efficiency.py +214 -0
- itmdpy-1.4.9/src/itmdpy/Lib/Impeller.py +124 -0
- itmdpy-1.4.9/src/itmdpy/Lib/Lossmodel.py +385 -0
- itmdpy-1.4.9/src/itmdpy/Lib/Thermodynamics.py +570 -0
- itmdpy-1.4.9/src/itmdpy/Lib/__init__.py +0 -0
- itmdpy-1.4.9/src/itmdpy/__init__.py +0 -0
itmdpy-1.4.9/License.txt
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
MIT License with Attribution Requirement (for the software code)
|
|
2
|
+
-----------------------------------
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2026 Steffen Folkers, Sebastian Schuster, Dieter Brillert
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
1. The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
2. **Attribution Requirement**:
|
|
17
|
+
If you use this software or parts of it in academic, scientific, or public work,
|
|
18
|
+
you must give appropriate credit to the original author:
|
|
19
|
+
|
|
20
|
+
Steffen Folkers, Universität Duisburg-Essen
|
|
21
|
+
Please cite the related publication if applicable (see README).
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
26
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
28
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
29
|
+
THE SOFTWARE.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
Creative Commons Attribution 4.0 International (CC BY 4.0) License (for scientific content)
|
|
34
|
+
-------------------------------------------------------------------------------------------
|
|
35
|
+
|
|
36
|
+
This repository may also contain academic text, figures, and supplementary material
|
|
37
|
+
associated with scientific publications. These non-code components are licensed under the:
|
|
38
|
+
|
|
39
|
+
Creative Commons Attribution 4.0 International License (CC BY 4.0).
|
|
40
|
+
|
|
41
|
+
You are free to:
|
|
42
|
+
- Share — copy and redistribute the material in any medium or format
|
|
43
|
+
- Adapt — remix, transform, and build upon the material for any purpose, even commercially.
|
|
44
|
+
|
|
45
|
+
Under the following terms:
|
|
46
|
+
- Attribution — You must give appropriate credit, provide a link to the license,
|
|
47
|
+
and indicate if changes were made.
|
|
48
|
+
|
|
49
|
+
To view a copy of this license, visit: https://creativecommons.org/licenses/by/4.0/
|
|
50
|
+
|
|
51
|
+
If you use content from this repository in a scientific publication,
|
|
52
|
+
please cite the original work accordingly.
|
itmdpy-1.4.9/PKG-INFO
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: iTMDpy
|
|
3
|
+
Version: 1.4.9
|
|
4
|
+
Summary: A tool for inverse design of turbomachinery intended for use in thermodynamic cycle design.
|
|
5
|
+
Project-URL: Chair-homepage, https://www.uni-due.de/tm/
|
|
6
|
+
Author-email: Steffen Folkers <steffen.folkers@uni-due.de>, Sebastian Schuster <s.schuster@uni-due.de>, Dieter Brillert <dieter.brillert@uni-due.de>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: License.txt
|
|
9
|
+
Keywords: Centrifugal Compressors,Compressors,Design Method
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Requires-Python: >=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# inverseTurbomachineryDesigner (iTMD)
|
|
16
|
+
|
|
17
|
+
## Description
|
|
18
|
+
A Python tool, which facilitates the inverse design of turbomachinery, intended for users outside of the turbomachine community like thermodynamic cycle designers. Currently limited to centrifugal compressors, a future expansion to radial inflow turbines is planned.
|
|
19
|
+
|
|
20
|
+
The user defines a compression task by its fluid, inlet state, desired outlet pressure and the mass flow rate. The tool then applies an inverse design methodology, to design a compressor capable of achieving this compression at high internal efficiency. The tool provides the fluids outlet state, the design details of the compressor and/or the compressors performance map, depending on the users requirements.
|
|
21
|
+
|
|
22
|
+
The tool is capable of designing multi-stage compressors in a matter of seconds, making it suitable to large scale studies and parameter variations.
|
|
23
|
+
|
|
24
|
+
The methodology applied in this tool is described in the following paper, please cite this in any publication of results found using this tool.
|
|
25
|
+
|
|
26
|
+
Folkers, S., Schuster, S., 2025. Inverse Design Method for Centrifugal Compressors in Carnot batteries. https://doi.org/10.17185/duepublico/84658
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
pip install iTMD
|
|
31
|
+
|
|
32
|
+
For calculating thermodynamic properties using the 'refprop' option via carabtpy's Refprop wrapper, a Refprop installation is required.
|
|
33
|
+
|
|
34
|
+
## Usage
|
|
35
|
+
Import:
|
|
36
|
+
|
|
37
|
+
from itmdpy.CompressorDesignTool import inverseCompressorDesignTool
|
|
38
|
+
from itmdpy.Lib.Thermodynamics import ThermodynamicProperties
|
|
39
|
+
|
|
40
|
+
Designing a compressor:
|
|
41
|
+
|
|
42
|
+
InletTemperature = 300 # Inlet temperature in K
|
|
43
|
+
InletPressure = 1e5 # Inlet pressure in Pa
|
|
44
|
+
OutletPressure = 5e5 # Desired outlet pressure in Pa
|
|
45
|
+
WorkingFluid = ["air"] # Working fluid as named in REFPROP/Coolprop
|
|
46
|
+
WorkingFluidComposition = [1] # Working fluid composition in mole fractions
|
|
47
|
+
MassFlow = 1 # Mass flow rate in kg s^-1
|
|
48
|
+
|
|
49
|
+
# Defining the inlet state of the working fluid
|
|
50
|
+
Properties = ThermodynamicProperties(WorkingFluid, WorkingFluidComposition, PropertyToolbox = 'coolprop')
|
|
51
|
+
InletState = Properties.setState([InletPressure, InletTemperature], "PT") # Properties defining the state may be chosen freely, TP as example
|
|
52
|
+
|
|
53
|
+
# Class initialisation
|
|
54
|
+
Compressor = inverseCompressorDesignTool(PropertyToolbox = 'coolprop')
|
|
55
|
+
|
|
56
|
+
# Calling the design method
|
|
57
|
+
OutletState, MachineData = Compressor.designCompressor(WorkingFluid, WorkingFluidComposition, InletState, OutletPressure, MassFlow)
|
|
58
|
+
|
|
59
|
+
# Results:
|
|
60
|
+
# OutletState: working fluid state at the compressor outlet as a thermodynamic state object
|
|
61
|
+
# MachineData: dictionary containing the details of the compressor design, used by further methods
|
|
62
|
+
|
|
63
|
+
Analyzing a designed compressor at a given operating point. Enabling Plot=True prints the results in the python console:
|
|
64
|
+
|
|
65
|
+
NewInletTemperature = 400 # Inlet temperature in K
|
|
66
|
+
NewInletState = Properties.setState([InletPressure, NewInletTemperature], "PT")
|
|
67
|
+
|
|
68
|
+
OutletState = Compressor.CalculateCompressor(MachineData, WorkingFluid, WorkingFluidComposition, NewInletState, MassFlow, SpeedFactor = 1, Plot=True)
|
|
69
|
+
|
|
70
|
+
# Results:
|
|
71
|
+
# OutletState: working fluid state at the compressor outlet as a thermodynamic state object
|
|
72
|
+
|
|
73
|
+
Calculating the performance map of a designed compressor for design inlet conditions:
|
|
74
|
+
|
|
75
|
+
SpeedFactor = [0.95, 1, 1.05] # List of dimensionless rotational speeds for which the performance curves are calculated
|
|
76
|
+
FileName = 'PerformanceMap.csv' # Name of the csv file in which the performance map is saved in the working directory
|
|
77
|
+
|
|
78
|
+
Compressor.PerformanceMap(MachineData, WorkingFluid, WorkingFluidComposition, InletState, SpeedFactor, FileName)
|
|
79
|
+
|
|
80
|
+
## Support
|
|
81
|
+
For help with issues, contact steffen.folkers@uni-due.de.
|
|
82
|
+
|
|
83
|
+
## Authors and acknowledgment
|
|
84
|
+
This work was created at the Chair of Turbomachinery at the University of Duisburg-Essen. The authors gratefully acknowledge the funding through the German Research Foundation as part of the priority program DFG SPP 2403: Carnot-Batteries: Inverse Design from Markets to Molecules“ under the project number 525711534.
|
|
85
|
+
|
|
86
|
+
## License
|
|
87
|
+
Software code: Custom MIT License with attribution (see LICENSE)
|
|
88
|
+
|
|
89
|
+
Scientific content: CC BY 4.0
|
|
90
|
+
|
|
91
|
+
## Project status
|
|
92
|
+
This project is work in process and will be steadily expanded in the future. Current plans include an extension to radial inflow turbines and a method of applying off-design requirements to the design process.
|
itmdpy-1.4.9/README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# inverseTurbomachineryDesigner (iTMD)
|
|
2
|
+
|
|
3
|
+
## Description
|
|
4
|
+
A Python tool, which facilitates the inverse design of turbomachinery, intended for users outside of the turbomachine community like thermodynamic cycle designers. Currently limited to centrifugal compressors, a future expansion to radial inflow turbines is planned.
|
|
5
|
+
|
|
6
|
+
The user defines a compression task by its fluid, inlet state, desired outlet pressure and the mass flow rate. The tool then applies an inverse design methodology, to design a compressor capable of achieving this compression at high internal efficiency. The tool provides the fluids outlet state, the design details of the compressor and/or the compressors performance map, depending on the users requirements.
|
|
7
|
+
|
|
8
|
+
The tool is capable of designing multi-stage compressors in a matter of seconds, making it suitable to large scale studies and parameter variations.
|
|
9
|
+
|
|
10
|
+
The methodology applied in this tool is described in the following paper, please cite this in any publication of results found using this tool.
|
|
11
|
+
|
|
12
|
+
Folkers, S., Schuster, S., 2025. Inverse Design Method for Centrifugal Compressors in Carnot batteries. https://doi.org/10.17185/duepublico/84658
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
pip install iTMD
|
|
17
|
+
|
|
18
|
+
For calculating thermodynamic properties using the 'refprop' option via carabtpy's Refprop wrapper, a Refprop installation is required.
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
Import:
|
|
22
|
+
|
|
23
|
+
from itmdpy.CompressorDesignTool import inverseCompressorDesignTool
|
|
24
|
+
from itmdpy.Lib.Thermodynamics import ThermodynamicProperties
|
|
25
|
+
|
|
26
|
+
Designing a compressor:
|
|
27
|
+
|
|
28
|
+
InletTemperature = 300 # Inlet temperature in K
|
|
29
|
+
InletPressure = 1e5 # Inlet pressure in Pa
|
|
30
|
+
OutletPressure = 5e5 # Desired outlet pressure in Pa
|
|
31
|
+
WorkingFluid = ["air"] # Working fluid as named in REFPROP/Coolprop
|
|
32
|
+
WorkingFluidComposition = [1] # Working fluid composition in mole fractions
|
|
33
|
+
MassFlow = 1 # Mass flow rate in kg s^-1
|
|
34
|
+
|
|
35
|
+
# Defining the inlet state of the working fluid
|
|
36
|
+
Properties = ThermodynamicProperties(WorkingFluid, WorkingFluidComposition, PropertyToolbox = 'coolprop')
|
|
37
|
+
InletState = Properties.setState([InletPressure, InletTemperature], "PT") # Properties defining the state may be chosen freely, TP as example
|
|
38
|
+
|
|
39
|
+
# Class initialisation
|
|
40
|
+
Compressor = inverseCompressorDesignTool(PropertyToolbox = 'coolprop')
|
|
41
|
+
|
|
42
|
+
# Calling the design method
|
|
43
|
+
OutletState, MachineData = Compressor.designCompressor(WorkingFluid, WorkingFluidComposition, InletState, OutletPressure, MassFlow)
|
|
44
|
+
|
|
45
|
+
# Results:
|
|
46
|
+
# OutletState: working fluid state at the compressor outlet as a thermodynamic state object
|
|
47
|
+
# MachineData: dictionary containing the details of the compressor design, used by further methods
|
|
48
|
+
|
|
49
|
+
Analyzing a designed compressor at a given operating point. Enabling Plot=True prints the results in the python console:
|
|
50
|
+
|
|
51
|
+
NewInletTemperature = 400 # Inlet temperature in K
|
|
52
|
+
NewInletState = Properties.setState([InletPressure, NewInletTemperature], "PT")
|
|
53
|
+
|
|
54
|
+
OutletState = Compressor.CalculateCompressor(MachineData, WorkingFluid, WorkingFluidComposition, NewInletState, MassFlow, SpeedFactor = 1, Plot=True)
|
|
55
|
+
|
|
56
|
+
# Results:
|
|
57
|
+
# OutletState: working fluid state at the compressor outlet as a thermodynamic state object
|
|
58
|
+
|
|
59
|
+
Calculating the performance map of a designed compressor for design inlet conditions:
|
|
60
|
+
|
|
61
|
+
SpeedFactor = [0.95, 1, 1.05] # List of dimensionless rotational speeds for which the performance curves are calculated
|
|
62
|
+
FileName = 'PerformanceMap.csv' # Name of the csv file in which the performance map is saved in the working directory
|
|
63
|
+
|
|
64
|
+
Compressor.PerformanceMap(MachineData, WorkingFluid, WorkingFluidComposition, InletState, SpeedFactor, FileName)
|
|
65
|
+
|
|
66
|
+
## Support
|
|
67
|
+
For help with issues, contact steffen.folkers@uni-due.de.
|
|
68
|
+
|
|
69
|
+
## Authors and acknowledgment
|
|
70
|
+
This work was created at the Chair of Turbomachinery at the University of Duisburg-Essen. The authors gratefully acknowledge the funding through the German Research Foundation as part of the priority program DFG SPP 2403: Carnot-Batteries: Inverse Design from Markets to Molecules“ under the project number 525711534.
|
|
71
|
+
|
|
72
|
+
## License
|
|
73
|
+
Software code: Custom MIT License with attribution (see LICENSE)
|
|
74
|
+
|
|
75
|
+
Scientific content: CC BY 4.0
|
|
76
|
+
|
|
77
|
+
## Project status
|
|
78
|
+
This project is work in process and will be steadily expanded in the future. Current plans include an extension to radial inflow turbines and a method of applying off-design requirements to the design process.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[tool.hatch.build.targets.wheel]
|
|
6
|
+
packages = ["src/itmdpy"]
|
|
7
|
+
|
|
8
|
+
[project]
|
|
9
|
+
name = "iTMDpy"
|
|
10
|
+
version = "1.4.9"
|
|
11
|
+
authors = [
|
|
12
|
+
{ name="Steffen Folkers", email="steffen.folkers@uni-due.de" },
|
|
13
|
+
{ name="Sebastian Schuster", email="s.schuster@uni-due.de" },
|
|
14
|
+
{ name="Dieter Brillert", email="dieter.brillert@uni-due.de" },
|
|
15
|
+
]
|
|
16
|
+
description = "A tool for inverse design of turbomachinery intended for use in thermodynamic cycle design."
|
|
17
|
+
keywords=["Compressors", "Centrifugal Compressors", "Design Method"]
|
|
18
|
+
readme = "README.md"
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
|
+
classifiers = [
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
"Operating System :: OS Independent",
|
|
23
|
+
]
|
|
24
|
+
license = "MIT"
|
|
25
|
+
license-files = ["LICEN[CS]E*"]
|
|
26
|
+
|
|
27
|
+
[project.urls]
|
|
28
|
+
Chair-homepage = "https://www.uni-due.de/tm/"
|
|
File without changes
|