summaryrefslogtreecommitdiff
path: root/Elementary_heat_Power/Chapter12.ipynb
diff options
context:
space:
mode:
authornice2014-09-15 12:50:58 +0530
committernice2014-09-15 12:50:58 +0530
commitdfe3c858e90bb33c32f84a46e0a17cdd93b38e11 (patch)
tree8c68c3908ca451c3c8362fa104272af669de99d8 /Elementary_heat_Power/Chapter12.ipynb
parentcb9f5bedfa86923784f479aff86cd9d22c09f0ff (diff)
downloadPython-Textbook-Companions-dfe3c858e90bb33c32f84a46e0a17cdd93b38e11.tar.gz
Python-Textbook-Companions-dfe3c858e90bb33c32f84a46e0a17cdd93b38e11.tar.bz2
Python-Textbook-Companions-dfe3c858e90bb33c32f84a46e0a17cdd93b38e11.zip
added books
Diffstat (limited to 'Elementary_heat_Power/Chapter12.ipynb')
-rwxr-xr-xElementary_heat_Power/Chapter12.ipynb62
1 files changed, 62 insertions, 0 deletions
diff --git a/Elementary_heat_Power/Chapter12.ipynb b/Elementary_heat_Power/Chapter12.ipynb
new file mode 100755
index 00000000..c40e0935
--- /dev/null
+++ b/Elementary_heat_Power/Chapter12.ipynb
@@ -0,0 +1,62 @@
+{
+ "metadata": {
+ "name": "EHP-12"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": "The Gas Turbine Power Plant"
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": "Example 12.1,Page 577"
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": "# Initialization of Variable\nfrom math import pi\nfrom math import atan\nfrom numpy import *\nT1=80.0 #F\nT2=460.0 #F\nT3=1300.0 #F\nT4=780.0 #F\n\n#calculations\n#\"from mollier charts\"\nh1=129.1 #Btu/lb\nh2 = 221.2 #Btu/lb\nh3= 438.8 #Btu/lb\nh4 = 301.5 #Btu/lb\nwcom=h2-h1\nwcob=h3-h2\nwtur=h3-h4\neta=(wtur-wcom)/wcob *100\n\n#results\nprint \" work done by compressor in btu input as work per lb of air compressed\",round(wcom,3)\nprint \" Heat supplied in the combustor in Btu supplied per lb of air \",round(wcob,3)\nprint \" work done in the turbine in Btu output as work per lb of air\",round(wtur,3)\nprint \" Cycle efficiency in percent\",round(eta,3)",
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": " work done by compressor in btu input as work per lb of air compressed 92.1\n Heat supplied in the combustor in Btu supplied per lb of air 217.6\n work done in the turbine in Btu output as work per lb of air 137.3\n Cycle efficiency in percent 20.772\n"
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": "Example 12.2,Page 579 "
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": "# Initialization of Variable\nfrom math import pi\nfrom math import atan\nfrom numpy import *\nT1=80 #F\nT2=460 #F\nT=700 #F\nT3=1300 #F\nT4=780 #F\n#\"from mollier charts\"\nh1=129.1 #Btu/lb\nh2 = 221.2 #Btu/lb\nh3= 438.8 #Btu/lb\nh4 = 301.5 #Btu/lb\nh=281.1 #Btu/lb\n\n#calculations\nwcom=h2-h1\nwcob=h3-h2\nwtur=h3-h4\noutput=-wcom+wtur\nQ=h3-h\neff=output/Q *100\n\n#results\nprint \" Heat supplied in the combustor in Btu supplied per lb of air \",round(Q,3)\nprint \" Cycle efficiency in percent\",round(eff,3)\n",
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": " Heat supplied in the combustor in Btu supplied per lb of air 157.7\n Cycle efficiency in percent 28.662\n"
+ }
+ ],
+ "prompt_number": 4
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file