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
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 14: Further Devolopments"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 14.1: ex_1.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc\n",
"//initialisation of variables\n",
"clear\n",
"a= 60.5\n",
"Q= 0.2 //ft^3/sec\n",
"d= 3 //in\n",
"u= 0.0325\n",
"g= 32.2 //ft/sec^2\n",
"T= [50.0 60.0 70.0 80.0 90.0 100.0]\n",
"Ep= [294.5 188.6 113.2 60.4 37.7 24.5]\n",
"Eh= [0 69.9 139.8 209.7 279.5 349.4]\n",
"Et= [295 258 253 270 317 374]\n",
"//CALCULATIONS\n",
"re= a*4*Q/(%pi*(d/12)*u*g)\n",
"//RESULTS\n",
"printf ('Reynolds Number = %.1f ',re)\n",
"disp(T)\n",
"disp(Ep)\n",
"disp(Eh)\n",
"disp(Et)\n",
"plot(T,Ep)\n",
"plot(T,Eh)\n",
"plot(T,Et)\n",
"\n",
"xtitle('','T (F)', 'Eh,Ep,Eh&Ep (kW)')\n",
"\n",
""
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 14.2: ex_2.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc\n",
"//initialisation of variables\n",
"clear\n",
"wcb= 2 //ton\n",
"wc= 100 //ton\n",
"wa= 6.5 //ton\n",
"wca= 20 \n",
"r= 0.8\n",
"r1= 1.2\n",
"//CALCULATIONS\n",
"wca1= wc/wa\n",
"wca2= wcb*(wca1/wca)^1.5\n",
"Wca= wcb*r^(9/4)*(1/r1)^(9/4)*(wca1/wca)^1.5\n",
"//RESULTS\n",
"printf ('(Wc/W)a = %.2f ',wca1)\n",
"printf ('\n Wc,a = %.2f ton',wca2)\n",
"printf ('\n Wc,a = %.2f ton',Wca)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Scilab",
"language": "scilab",
"name": "scilab"
},
"language_info": {
"file_extension": ".sce",
"help_links": [
{
"text": "MetaKernel Magics",
"url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
}
],
"mimetype": "text/x-octave",
"name": "scilab",
"version": "0.7.1"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|