Skip to content

The General Simulator of Rankine Cycle to Demonstrate:Data Structures+ Algorithms = Programs & Computational Thinking

License

Notifications You must be signed in to change notification settings

yinboHU/PyRankine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyRankine

Step by step codes of the rankine cycle simulator to demonstrate:

  • Data Structures + Algorithms = Programs

  • Computational Thinking

    • step 0 : Zero @ Data Structures,Program architecture, Algorithms(The Ideal Rankine Cycle)

                simple data type and expression  only
      
    • step 1 : Basic @ Data Structures,Program architecture, Algorithms(The Ideal Rankine Cycle)

                list,dict,function
      
    • step 2 : Forward @ Data Structures,Program architecture, Algorithms(The Ideal Rankine Cycle)

               object-oriented programming
      
    • step 3 : Forward @ Data Structures,Program architecture, Algorithms

               object-oriented programming and data files
      
    • step 4 : Advanced @ Data Structures,Program architecture, Algorithms

               object-oriented programming,general module
                  
                   Michael J . Mora. Chapter 8 : Vapour Power Systems 
                     1) Example 8.1: The Ideal Rankine Cycle, Page 438
                     2) Example 8.5: A Regenerative Cycle with Open Feedwater Heater,Page 456
      

You need to

  • reading the codes
  • understanding computational thinking and programming skills
  • programming one solution to the rankine cycle

Dependencies:libseuif97

Step by step Codes

StartNB.bat
  • Python
>cd step0/1/2/3/4
>python rankine.py

Example Rankine Cycle

  • Michael J . Mora. Fundamentals of Engineering Thermodynamics(7th Edition). John Wiley & Sons, Inc. 2011

    Chapter 8 : Vapour Power Systems 
      1) Example 8.1: Analyzing an Ideal Rankine Cycle, Page 438
      2) Example 8.5:A Regenerative Cycle with Open Feedwater Heater, Page 456
    

Example 8.1: Analyzing an Ideal Rankine Cycle Page 438

  • Steam is the working fluid in an ideal Rankine cycle.

  • Saturated vapor enters the turbine at 8.0 MPa

  • Saturated liquid exits the condenser at a pressure of 0.008 MPa.

  • The net power output of the cycle is 100 MW.

  • Cooling water enters the condenser at 15°C and exits at 35°C.

rankine81

  • Determine for the cycle

    • the thermal efficiency, %

    • the back work ratio, %

    • the mass flow rate of the steam,in kg/h,

    • the rate of heat transfer, Qin, into the working fluid as it passes through the boiler, in MW,

    • the rate of heat transfer, Qout, from the condensing steam as it passes through the condenser, in MW,

    • the mass flow rate of the condenser cooling water, in kg/h

Example 8.5: A Regenerative Cycle with Open Feedwater Heater, Page 456

Consider a regenerative vapor power cycle with one open feedwater heater.

  • Steam enters the turbine at 8.0 MPa, 480°C and expands to 0.7 MPa,

  • Some of the steam is extracted and diverted to the open feedwater heater operating at 0.7 MPa.

  • The remaining steam expands through the second-stage turbine to the condenser pressure of 0.008 MPa

  • Saturated liquid exits the open feedwater heater at 0.7 MPa.

  • The isentropic efficiency of each turbine stage is 85% and each pump operates isentropically.

If the net power output of the cycle is 100 MW, determine

  • (a) the thermal efficiency %

  • (b) the mass flow rate of steam entering the first turbine stage, in kg/h.

If the mass flow rate of steam entering the first-stage turbine were 150 kg/s

  • (a) what would be the net power, in MW

  • (b) the fraction of steam extracted, y?

rankine85

Engineering Model:

  1. Each component in the cycle is analyzed as a steady-state control volume. The control volumes are shown in the accompanying sketch by dashed lines.

  2. All processes of the working fluid are internally reversible, except for the expansions through the two turbine stages and mixing in the open feedwater heater.

  3. The turbines, pumps, and feedwater heater operate adiabatically.

  4. Kinetic and potential energy effects are negligible.

  5. Saturated liquid exits the open feedwater heater, and saturated liquid exits the condenser.

Reference

About

The General Simulator of Rankine Cycle to Demonstrate:Data Structures+ Algorithms = Programs & Computational Thinking

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 60.4%
  • Python 39.6%