You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Chapter 10 : Stability and phase transition in thermodynamic systems"
16
+
]
17
+
},
18
+
{
19
+
"cell_type": "heading",
20
+
"level": 3,
21
+
"metadata": {},
22
+
"source": [
23
+
"Example 10.2 Page No : 369"
24
+
]
25
+
},
26
+
{
27
+
"cell_type": "code",
28
+
"collapsed": false,
29
+
"input": [
30
+
"\n",
31
+
"# Variables\n",
32
+
"P = 2;\t\t\t #number of phases (no unit)\n",
33
+
"C = 2;\t\t\t #number of components (no unit)\n",
34
+
"\n",
35
+
"# Calculations\n",
36
+
"F = C+2-P\n",
37
+
"\n",
38
+
"# Results\n",
39
+
"print \" The number of degrees of freedom = %d \"%(F);\n",
40
+
"print \"Two intensive properties are required to be specified to\\\n",
41
+
" describe the thermodynamic state of the system,and the fundamental relation in\\\n",
42
+
" the Gibbs free energy representation for this system is of the type, G = GT,P,N1,N2\"\n",
43
+
"\n"
44
+
],
45
+
"language": "python",
46
+
"metadata": {},
47
+
"outputs": [
48
+
{
49
+
"output_type": "stream",
50
+
"stream": "stdout",
51
+
"text": [
52
+
" The number of degrees of freedom = 2 \n",
53
+
"Two intensive properties are required to be specified to describe the thermodynamic state of the system,and the fundamental relation in the Gibbs free energy representation for this system is of the type, G = GT,P,N1,N2\n"
54
+
]
55
+
}
56
+
],
57
+
"prompt_number": 1
58
+
},
59
+
{
60
+
"cell_type": "heading",
61
+
"level": 3,
62
+
"metadata": {},
63
+
"source": [
64
+
"Example 10.3 Page No : 370"
65
+
]
66
+
},
67
+
{
68
+
"cell_type": "code",
69
+
"collapsed": false,
70
+
"input": [
71
+
"\n",
72
+
"import cmath\n",
73
+
"import math\n",
74
+
"\n",
75
+
"# Variables\n",
76
+
"T = 427.85;\t\t\t #temperature of n-octane vapour in K\n",
77
+
"R = 8.314;\t\t\t #universal gas constant in J/molK\n",
78
+
"Tc = 569.4;\t\t\t #critical temperature of n-octane in K\n",
79
+
"Pc = 24.97;\t\t\t #critical pressure of n-octane in bar\n",
0 commit comments