diff options
author | kinitrupti | 2017-05-12 18:53:46 +0530 |
---|---|---|
committer | kinitrupti | 2017-05-12 18:53:46 +0530 |
commit | 6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d (patch) | |
tree | 22789c9dbe468dae6697dcd12d8e97de4bcf94a2 /Non_Conventional_Energy_Resources_by_B.H.Khan/Chapter10.ipynb | |
parent | d36fc3b8f88cc3108ffff6151e376b619b9abb01 (diff) | |
download | Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.tar.gz Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.tar.bz2 Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.zip |
Removed duplicates
Diffstat (limited to 'Non_Conventional_Energy_Resources_by_B.H.Khan/Chapter10.ipynb')
-rwxr-xr-x | Non_Conventional_Energy_Resources_by_B.H.Khan/Chapter10.ipynb | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/Non_Conventional_Energy_Resources_by_B.H.Khan/Chapter10.ipynb b/Non_Conventional_Energy_Resources_by_B.H.Khan/Chapter10.ipynb new file mode 100755 index 00000000..03ebc1f8 --- /dev/null +++ b/Non_Conventional_Energy_Resources_by_B.H.Khan/Chapter10.ipynb @@ -0,0 +1,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": {}
+ }
+ ]
+}
\ No newline at end of file |