<jupyter_start><jupyter_text>HW-23: Due Friday 21 July 2017 by 2:00:00 pm EDT A Rankine cycle power plant has a pump whose isentropic efficiency is 75%  and a turbine whose isentropic efficiency is 97%.  The pump receives saturated liquid water at 0.1 bar.  The boiler outlet stream is as 40 bar and 400 C. Compute the cycle energy efficiency and compare it one whose pump and turbine are isentropic.  Problem:Compute the cycle energy efficiency and compare it one whose pump and turbine are isentropic. Knowns:- Cycle: Rankine- isentropic efficiencies:   - pump: 75%   - turbine: 97%- Pump In:  - Saturated Liquid Water  - Pressure: 0.1 bar- Boiler Output:  - Steam  - 40 bar  - 400 C   Assumptions:- Rotating machinery is adiabatic.- Steady flow steady state conditions (SFSS)-    System![](23_sys.png) Solution<jupyter_code>from pint import UnitRegistry
ureg = UnitRegistry()
_bar = ureg.bar
_MPa = ureg.MPa
import sys
import os
sys.path.append(os.path.abspath("venv/lib/python3.5/site-packages/"))

from iapws import IAPWS95
pump_in=IAPWS95(P=0.01, x=0) #saturated water
print(pump_in.h)<jupyter_output>191.805944621
{'fraction_non_alphanumeric': 0.08125, 'fraction_numerical': 0.05267857142857143, 'mean_word_length': 4.363636363636363, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '574271', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 417, 'n_tokens_neox': 350, 'n_words': 141, 'path': 'HW_23.ipynb', 'repo_name': 'ME-Python/ME200', 'size': '1120'}