The step-by-step codes of the rankine cycle simulator from zero abstraction to the general abstraction are provided in the PyRankine.
We wish that the PyRankine may be a helpful vehicle for you to understand Computational Thinking and improve the programming skills.
The Example Rankine Cycles used in the follow codes are from Michael J. Moran. Fundamentals of Engineering Thermodynamics(7th Edition)
-
step 0 : Zero Abstraction of The Ideal Rankine Cycle(Example 8.1)
The simple data types and expression only
-
step 1 : Simple Abstraction of The Ideal Rankine Cycle(Example 8.1)
Structure data types(List,Dict) and functions
-
step 2 : Basic Object-Orientation Abstraction of The Ideal Rankine Cycle(Example 8.1)
Object-oriented programming
-
step 3 : Basic Object-Orientation Abstraction and Textual Representation of The Ideal Rankine Cycle(Example 8.1)
Object-oriented Programming JSON file of Rankine Cycle Flowsheet
The UML Class Diagram: Association
-
step 4 : General Abstraction and Textual Representation of Rankine Cycles
Object-oriented programming, general module; JSON file of Rankine Cycle Flowsheet
Example Rankine Cycles
-
Example 8.1: The Ideal Rankine Cycle
-
Example 8.2: Analyzing a Rankine Cycle with Irreversibilities
-
Example 8.5: Regenerative Cycle with Open Feedwater Heater
The UML Class Diagram: Association
-
-
step 5 : The Base Class Abstraction and Textual Representation of Rankine Cycles
Object-oriented programming, general module, the base class; JSON file of Rankine Cycle Flowsheet
Example Rankine Cycles
-
Example 8.1: The Ideal Rankine Cycle
-
Example 8.2: Analyzing a Rankine Cycle with Irreversibilities
-
Example 8.5: Regenerative Cycle with Open Feedwater Heater
The UML Class Diagram: Association
-
cd step0/1/2/3/4/5
python rankine.py
IAPWS-IF97 high-speed shared library
Install with pip
python -m pip install seuif97
Michael J. Moran, Howard N. Shapiro, Daisie D. Boettner, Margaret B. Bailey. Fundamentals of Engineering Thermodynamics(7th Edition). John Wiley & Sons, Inc. 2011
Chapter 8 : Vapour Power Systems
-
EXAMPLE 8.2: Analyzing a Rankine Cycle with Irreversibilities, P444
-
EXAMPLE 8.3: Evaluating Performance of an Ideal Reheat Cycle, P449-451
-
EXAMPLE 8.4: Evaluating Performance of a Reheat Cycle with Turbine Irreversibility, P451
-
EXAMPLE 8.5: The Regenerative Cycle with Open Feedwater Heater, P456
-
EXAMPLE 8.6: The Reheat–Regenerative Cycle with Two Feedwater Heaters, P460-463
Start the notebooks
>startnb.bat
Schematic of Example Rankine Cycles
-
Computational thinking
-
Modeling and Simulation of Engineering Systems
-
R Sinha, Christiaan J. J. Paredis. etc. Modeling and Simulation Methods for Design of Engineering Systems. Transactions of the ASME[J]. 2001.03(1):84-91
-
MATLAB:Simscape https://cn.mathworks.com/products/simscape.html
-
OpenMDAO: An open-source MDAO framework written in Python http://openmdao.org/
-
Modelica
-
OpenModelica: An open-source Modelica-based modeling and simulation environment https://openmodelica.org/
-
Michael M.Tiller (作者), 刘俊堂等译. Modelica多领域物理系统建模入门与提高, 航空工业出版社(第1版),2017.05
-
-
Bond Graph
-
Wolfgang Borutzky. Bond Graph Modelling of Engineering Systems:Theory, Applications and Software Support. Springer Science Business Media, LLC 2011
-
王中双. 键合图理论及其在系统动力学中的应用, 哈尔滨工程大学出版社,2007.08
-
-
-
ThermoCycle Simulator
-
Maarten Winter: pyDNA https://github.com/mwoc/pydna
-
ORC Modeling Kit: https://github.com/orcmkit/ORCmKit
-
Rankine Cycle(Steam Turbine) http://cn.mathworks.com/help/physmod/simscape/examples/rankine-cycle-steam-turbine.html
-
-
Electronic circuit simulator
-
Jan M. Rabaey: SPICE http://bwrcs.eecs.berkeley.edu/Classes/IcBook/SPICE/
-
ahkab:a SPICE-like electronic circuit simulator written in Python https://github.com/ahkab/ahkab
-
杨华中等. 电子电路的计算机辅助分析和设计方法(第二版),清华大学出版社,北京,2008.02
-