summaryrefslogtreecommitdiff
path: root/Basic_Principles_And_Calculations_In_Chemical_Engineering/ch5.ipynb
blob: 7c4d25d66188a94382905c823eda77f53ddbbd5b (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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
{
 "metadata": {
  "name": "",
  "signature": "sha256:17452ca2e9b7dcffa8d444e8e6e3bb3b7f47f9f947558729a784ae56a1f45de2"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Chapter 5 : Pressure"
     ]
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 5.1 Page no.109\n"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Variables\n",
      "P = 60 ;         #[Gpa]\n",
      "\n",
      "# Calculation and Results\n",
      "#(a)\n",
      "p_atm = (P*(10**6))/101.3 ;           #[atm]\n",
      "print '(a) Pressure in atmospheres is %.2e atm'%p_atm\n",
      "\n",
      "#(b)\n",
      "p_s = (P*(10**6)*14.696)/101.3 ;      #[psia]\n",
      "print ' (b) Pressure in psia is %.2e psia'%p_s\n",
      "\n",
      "# (c)\n",
      "p_in = (P*(10**6)*29.92)/101.3 ;      #[inches of Hg]\n",
      "print ' (c) Pressure in inches of Hg is %.2e in. Hg'%p_in\n",
      "\n",
      "# (d)\n",
      "p_mm = (P*(10**6)*760)/101.3 ;        #[mm of Hg]\n",
      "print ' (d) Pressure in mm of Hg is %.2e mm Hg'%p_mm"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "(a) Pressure in atmospheres is 5.92e+05 atm\n",
        " (b) Pressure in psia is 8.70e+06 psia\n",
        " (c) Pressure in inches of Hg is 1.77e+07 in. Hg\n",
        " (d) Pressure in mm of Hg is 4.50e+08 mm Hg"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      " Example 5.2 Page no. 110\n"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "\n",
      "# Variable\n",
      "b_rd = 28.0 ;       #[in. Hg]\n",
      "p_rd = 51.0 ;       #[psia]\n",
      "\n",
      "# calculation\n",
      "p_atm = b_rd*14.7/29.92 ;       # [psia]\n",
      "p_tnk  =  p_atm+p_rd ;          #[psia]\n",
      "\n",
      "# Result\n",
      "print ' Pressure in tank in psia is %.1f psia'%p_tnk"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " Pressure in tank in psia is 64.8 psia\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      " Example 5.3 Page no. 111\n"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "# Variables\n",
      "b_rd = 100.0 ;             #[kPa]\n",
      "gp =  64.5*101.3/76.0 ;    #[kPa]\n",
      "\n",
      "# Calculations\n",
      "p_tnk = b_rd-gp ;          #[kPa]\n",
      "\n",
      "# Results\n",
      "print ' Absolute Pressure in tank in is %.1f kPa'%p_tnk\n",
      "print '  Since absolute pressure in tank(%.1f kPa) is less than 20 kPa , the \\\n",
      " mice probably will not survive. '%p_tnk"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " Absolute Pressure in tank in is 14.0 kPa\n",
        "  Since absolute pressure in tank(14.0 kPa) is less than 20 kPa , the  mice probably will not survive. \n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      " Example 5.4 Page no. 115\n"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "\n",
      "# Variables\n",
      "df = 1.10*10**3 ;              #[kg/m**3]\n",
      "d = 1.0*10**3 ;                #[kg/m**3]\n",
      "g = 9.8 ;                      #[m/s**2]\n",
      "h = 22.0 ;                     #[mm]\n",
      "\n",
      "# Calculation\n",
      "dP = (df-d)*g*(h*10**(-3)) ;   #[Pa]\n",
      "\n",
      "# Result\n",
      "print 'Pressure difference across the orifice plate is %.1f Pa.'%dP"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Pressure difference across the orifice plate is 21.6 Pa.\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      " Example 5.5 Page no. 117\n"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "\n",
      "# Variables\n",
      "p_atm=730.0*29.92/760.0 ;            #[in. Hg]\n",
      "gp= (4.0*29.92)/(2.54*12*33.91) ;    #[in. Hg]\n",
      "\n",
      "# Calculation\n",
      "p_air=p_atm-gp ;                     #[in. Hg]\n",
      "\n",
      "# Result\n",
      "print ' Pressure of the air is %.1f in. Hg.'%p_air"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " Pressure of the air is 28.6 in. Hg.\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "code",
     "collapsed": true,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}