# Chapter10:Ocean Energy¶

## Ex10.1:pg-320¶

In :
import math
# given data
R=13.0 # in m
r=3.0 # in m
A=2.0 # area in km^2
ebbcycle=12.42 # in hours
effi=0.7 # efficiency of turbine
g=9.8 # gravitational acceleration in m/sec^2
rho=1025 # density of sea in kg/m^3
Powerpotential=0.225*A*(10**6)*((R**2)-(r**2))/10**6 # power potential in MW

Powergenerated=effi*Powerpotential # in MW

print "The average power generated by plant is ",Powergenerated,"MW"

Energysingle=rho*A*(10**6)*g*((R**2)-(r**2))/(2.0*10**6) # Energy in single emptying in MJ

ebbyear=364.0*24/ebbcycle

annualenergy=Energysingle*ebbyear*effi*1000/3600.0 # in kWh

print "The annual average energy generation is ",round(annualenergy,-7),"kWh"

The average power generated by plant is  50.4 MW
The annual average energy generation is  220000000.0 kWh


## Ex10.2:pg-324¶

In :
import math
# given data
a=2.0/2 # in m
T=8.0 # in secs
rho=1025.0 # in kg/m^3
w=2*math.pi/T # angular frequency in radian/sec
g=9.8 # gravitational acceleration in m/sec^2

Lamda=2*(math.pi)*g/(w**2) # in m
print "wavelength is",round(Lamda,1),"m"
v=g/w # phase velocity in m/s
print "phase velocity is",round(v,2),"m/s"
P=rho*(g**2)*(a**2)*T/(8*math.pi*1000) # power in wave in kW/m
print "power in wave is ",round(P,2),"kW/m"
E=P*8.76  # average annual wave energy in mWh/m

print "average annual wave energy is ",round(E,1),"mWh/m"

wavelength is 99.8 m
phase velocity is 12.48 m/s
power in wave is  31.33 kW/m
average annual wave energy is  274.5 mWh/m