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
|
{
"metadata": {
"name": "",
"signature": "sha256:eeb1c8da856a86d3cb60a72e738f1fe4c7b2d7aaa546df7d68c6871754268745"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 15 : Real Gases Equations of State"
]
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
" Example 15.1 Page No. 464\n"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"\n",
"# variables\n",
"R = 82.06 # gas constant-[(cm**3 *atm)/(g mol *K)]\n",
"a = 9.24 *10**(6) ; #(atm) *(cm**3/g mol)**2\n",
"b = 90.7 ; # (cm**3)/(g mol)\n",
"m_C3H8 = 22.7 # Mass of propane-[kg]\n",
"mw_C3H8 = 44. ; # Mol. wt. of 1kmol propane-[kg]\n",
"V = 0.15 *10**(6) ; # Volume of cylinder -[cm**3]\n",
"pg = 4790. # Gauge pressure -[kPa]\n",
"\n",
"# Calculations\n",
"P = (pg +101.3)/101.3 # Pressure absolute-[atm abs]\n",
"n = (m_C3H8/mw_C3H8) *10**3 ; # Moles of propane\n",
"# Get T using Van der Waal's eqn. \n",
"T = ((P +((n**(2) *a/(V**(2))))) *(V-n *b))/(R *n) ;# Temperature of propane-[K]\n",
"\n",
"# Result\n",
"print 'Temperature of propane is %.0f K.'%T"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Temperature of propane is 384 K.\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "code",
"collapsed": true,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
|