Skip to content

seujin/PyRankine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

209 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyRankine

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 : The Simple Abstraction of The Rankine Cycle(Example 8.1,8.2)

    Structure data types(List,Dict) and functions
    
  • step 2 : The Simple Object-Orientation Abstraction of The Ideal Rankine Cycle(Example 8.1)

    Object-oriented programming
    
  • step 3 : Object-Orientation Abstraction and JSON Textual Representation of The Ideal Rankine Cycle(Example 8.1)

    Object-oriented Programming 
    
    JSON file of Rankine Cycle Flowsheet
    

    The UML Class Diagram: Association

    The UML Class Diagram: Association

  • step 4 : General Abstraction and JSON 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

    The UML Class Diagram: Association

  • step 5 : The Base Class Abstraction and JSON 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

    The UML Class Diagram: Association

Run

cd step0/1/2/3/4/5
python rankine.py

Dependencies:SEUIF97

IAPWS-IF97 high-speed shared library

Install with pip

python -m pip install seuif97

The Jupyter Notebooks of Example Rankine Cycles

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

Start the notebooks

>startnb.bat

Schematic of Example Rankine Cycles

rankines

Reference

About

The step-by-step codes of the rankine cycle simulator from zero abstraction to the general abstraction

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 51.5%
  • Python 48.5%