summaryrefslogtreecommitdiff
path: root/Mechanical_Engineering_Thermodynamics_by_Mooney_D_A/Chapter_15.ipynb
blob: 546b25c53c4944ebff7603f5906f5bc876127531 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 15 - Vapor Cycles : More Efficient Cycles"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1 - Pg 243"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#calculate the improvement in efficiency\n",
      "#initialization of varaibles\n",
      "e=0.85\n",
      "print '%s' %(\"From Mollier chart and table 3,\")\n",
      "h1=1474.5 #B/lb\n",
      "s1=1.5603 #B/lb R\n",
      "h2s=1277.5 #B/lb\n",
      "#calculations\n",
      "h2=h1-e*(h1-h2s)\n",
      "h3=1522.4 #B/lb\n",
      "h4s=948 #B/lb\n",
      "h4=h3-e*(h3-h4s)\n",
      "h5=47.6 #B/lb\n",
      "h6=53.5 #B/lb\n",
      "h7s=840 #B/lb\n",
      "h7=h1-e*(h1-h7s)\n",
      "h8=1493.2 #B/lb\n",
      "h9s=866 #B/lb\n",
      "h9=h8-e*(h8-h9s)\n",
      "h11=51.5 #B/lb\n",
      "eta1=0.401\n",
      "eta2=0.375\n",
      "eta3=0.366\n",
      "IE1=(eta1-eta2)/eta2\n",
      "IE2=(eta1-eta3)/eta3\n",
      "#results\n",
      "print '%s %.1f %s' %(\"Improvement in efficiency =\",IE1*100,\"percent\")\n",
      "print '%s %.1f %s' %(\"\\nImprovement in efficiency in case 2=\",IE2*100,\"percent\")\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "From Mollier chart and table 3,\n",
        "Improvement in efficiency = 6.9 percent\n",
        "\n",
        "Improvement in efficiency in case 2= 9.6 percent\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 2a - Pg 257"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Calculate the fraction of energy supplied \n",
      "#initialization of varaibles\n",
      "print '%s' %(\"From mollier chart and table 3,\")\n",
      "h1=1371. #B/lb\n",
      "h2s=1149. #B/lb\n",
      "h3=118. #B/lb\n",
      "e=0.9\n",
      "print '%s' %(\"Neglecting pump work,\")\n",
      "Q1=h1-h3\n",
      "W=156. #B/lb\n",
      "eta1=W/Q1\n",
      "Q=h1-W-h3\n",
      "UE=W+e*Q\n",
      "fraction = UE/Q1\n",
      "#results\n",
      "print '%s %.2f' %(\"Fraction supplied = \",fraction)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "From mollier chart and table 3,\n",
        "Neglecting pump work,\n",
        "Fraction supplied =  0.91\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 2b - Pg 258"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Calculate the fraction of energy supplied \n",
      "#initialization of varaibles\n",
      "print '%s' %(\"From mollier chart and table 3,\")\n",
      "h1=1371. #B/lb\n",
      "h2s=1149. #B/lb\n",
      "h3=118. #B/lb\n",
      "e=0.23\n",
      "e2=0.9\n",
      "print '%s' %(\"Neglecting pump work,\")\n",
      "Q1=h1-h3\n",
      "W=156. #B/lb\n",
      "eta1=W/Q1\n",
      "Q=h1-W-h3\n",
      "We=W/e\n",
      "UE=We+Q\n",
      "UE1=W+e2*Q\n",
      "Q2=Q+We\n",
      "fraction = UE1/UE\n",
      "#results\n",
      "print '%s %.2f' %(\"Fraction supplied = \",fraction)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "From mollier chart and table 3,\n",
        "Neglecting pump work,\n",
        "Fraction supplied =  0.64\n"
       ]
      }
     ],
     "prompt_number": 3
    }
   ],
   "metadata": {}
  }
 ]
}