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
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 7: Rainfall and runoff"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 7.5: Example_1.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc\n",
"//initialisation of variables\n",
"n=20//ft\n",
"s=sqrt(12676/19)//ft\n",
"c=45.5//ft\n",
"q=551400//ft\n",
"q1=12700//ft\n",
"h=8.5//ft\n",
"w=s/c//ft\n",
"//CALCULATIONS\n",
"D=q/(2*s*q1)//cfs\n",
"D1=D*(1+h/n)//cfs\n",
"//RESULTS\n",
"printf('the record runoff of a stream draining=% f cfs',D1)"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 7.6: Example_2.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc\n",
"//initialisation of variables\n",
"i=16/(62)^0.66//in hr\n",
"q=(16*10^0.31)/(62)^0.66//in hr\n",
"c=1.0//max\n",
"C1=c*(0.01)^0.31//in\n",
"C2=c*(0.1)^0.31//in\n",
"x1=640//cfs\n",
"//CALCULATIONS\n",
"Y1=C1*i*c*x1//cfs\n",
"Y2=C2*q*c*x1//cfs\n",
"//RESULTS\n",
"printf('the time of concentration=% f cfs',Y2)"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 7.8: Example_3.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc\n",
"//initialisation of variables\n",
"d=163*48.5//cfs\n",
"a=48.5//ft\n",
"q=100//cfs\n",
"Q=45.5*a//cfs\n",
"c=0.57//cfs\n",
"v=1.8//cfs\n",
"p=0.45//ft\n",
"//CALCULATIONS\n",
"P=d/(q*sqrt(a))//percent\n",
"C=Q/(a^0.8*(1+2*a^-0.3))//cfs\n",
"d1=2.6//cfs\n",
"T=(1-p*c+v*c*2)//cfs\n",
"//RESULTS\n",
"printf('the meyers rating =% f percent',P)\n",
"printf('the magnitude of the maximum peak flood =% f cfs',T)"
]
}
],
"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
}
|