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
|
{
"metadata": {
"name": "",
"signature": "sha256:24612751ac65a9de19e1dea072c5ab537e43d1545604927f1edd7f0e4f7a9d58"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter10:Ocean Energy"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex10.1:pg-320"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"# given data\n",
"R=13.0 # in m\n",
"r=3.0 # in m\n",
"A=2.0 # area in km^2\n",
"ebbcycle=12.42 # in hours\n",
"effi=0.7 # efficiency of turbine\n",
"g=9.8 # gravitational acceleration in m/sec^2\n",
"rho=1025 # density of sea in kg/m^3\n",
"Powerpotential=0.225*A*(10**6)*((R**2)-(r**2))/10**6 # power potential in MW\n",
"\n",
"Powergenerated=effi*Powerpotential # in MW\n",
"\n",
"print \"The average power generated by plant is \",Powergenerated,\"MW\"\n",
"\n",
"Energysingle=rho*A*(10**6)*g*((R**2)-(r**2))/(2.0*10**6) # Energy in single emptying in MJ\n",
"\n",
"ebbyear=364.0*24/ebbcycle\n",
"\n",
"annualenergy=Energysingle*ebbyear*effi*1000/3600.0 # in kWh\n",
"\n",
"print \"The annual average energy generation is \",round(annualenergy,-7),\"kWh\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The average power generated by plant is 50.4 MW\n",
"The annual average energy generation is 220000000.0 kWh\n"
]
}
],
"prompt_number": 49
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex10.2:pg-324"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"# given data\n",
"a=2.0/2 # in m\n",
"T=8.0 # in secs\n",
"rho=1025.0 # in kg/m^3\n",
"w=2*math.pi/T # angular frequency in radian/sec\n",
"g=9.8 # gravitational acceleration in m/sec^2\n",
"\n",
"Lamda=2*(math.pi)*g/(w**2) # in m\n",
"print \"wavelength is\",round(Lamda,1),\"m\"\n",
"v=g/w # phase velocity in m/s\n",
"print \"phase velocity is\",round(v,2),\"m/s\"\n",
"P=rho*(g**2)*(a**2)*T/(8*math.pi*1000) # power in wave in kW/m\n",
"print \"power in wave is \",round(P,2),\"kW/m\"\n",
"E=P*8.76 # average annual wave energy in mWh/m\n",
"\n",
"print \"average annual wave energy is \",round(E,1),\"mWh/m\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"wavelength is 99.8 m\n",
"phase velocity is 12.48 m/s\n",
"power in wave is 31.33 kW/m\n",
"average annual wave energy is 274.5 mWh/m\n"
]
}
],
"prompt_number": 84
}
],
"metadata": {}
}
]
}
|