Skip to content

Commit

Permalink
[Samples] Replace 'PX' by 'PQ' in rankine.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingmar Schoegl authored and speth committed Dec 27, 2019
1 parent 2be5c97 commit 2ad7601
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions interfaces/cython/cantera/examples/thermo/rankine.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""
A Rankine vapor power cycle
Requires: Cantera >= 2.5.0
"""

import cantera as ct
Expand Down Expand Up @@ -48,7 +50,7 @@ def printState(n, fluid):
w = ct.Water()

# start with saturated liquid water at 300 K
w.TX = 300.0, 0.0
w.TQ = 300.0, 0.0
h1 = w.h
p1 = w.P
printState(1, w)
Expand All @@ -60,7 +62,7 @@ def printState(n, fluid):

# heat it at constant pressure until it reaches the saturated vapor state
# at this pressure
w.PX = p_max, 1.0
w.PQ = p_max, 1.0
h3 = w.h
heat_added = h3 - h2
printState(3, w)
Expand Down

0 comments on commit 2ad7601

Please sign in to comment.