diff options
author | hardythe1 | 2015-06-03 15:27:17 +0530 |
---|---|---|
committer | hardythe1 | 2015-06-03 15:27:17 +0530 |
commit | 47d7279a724246ef7aa0f5359cf417992ed04449 (patch) | |
tree | c613e5e4813d846d24d67f46507a6a69d1a42d87 /Non_Conventional_Energy_Resources/Chapter2.ipynb | |
parent | 435840cef00c596d9e608f9eb2d96f522ea8505a (diff) | |
download | Python-Textbook-Companions-47d7279a724246ef7aa0f5359cf417992ed04449.tar.gz Python-Textbook-Companions-47d7279a724246ef7aa0f5359cf417992ed04449.tar.bz2 Python-Textbook-Companions-47d7279a724246ef7aa0f5359cf417992ed04449.zip |
add books
Diffstat (limited to 'Non_Conventional_Energy_Resources/Chapter2.ipynb')
-rwxr-xr-x | Non_Conventional_Energy_Resources/Chapter2.ipynb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/Non_Conventional_Energy_Resources/Chapter2.ipynb b/Non_Conventional_Energy_Resources/Chapter2.ipynb new file mode 100755 index 00000000..17e1a25e --- /dev/null +++ b/Non_Conventional_Energy_Resources/Chapter2.ipynb @@ -0,0 +1,64 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:fcec1d0bbd87d6cfda378ca8b1be1663bde590b6487e23dd0b577f818a453620"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter2: Energy Conservation"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2.1:pg-56"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Given data:\n",
+ "Hcoal=20.0 # heating value of coal in MJ\n",
+ "W=200.0e3 # weight of coal in kg\n",
+ "E=1.2e6 # Electrical energy generated in MJ\n",
+ "delH=1.6e6 # Heat energy generated in MJ\n",
+ "ne=0.30 # electrical efficiency\n",
+ "nb=0.8 # thermal efficiency\n",
+ "\n",
+ "QA=Hcoal*W # total thermal energy input to plant in MJ\n",
+ "nco=(E+delH)/QA # efficiency of cogeneration plant\n",
+ "e=E/(E+delH) # electrical fraction\n",
+ "\n",
+ "nc=1/((e/ne)+(1-e)/nb) # overall efficiency\n",
+ "\n",
+ "print \"The overall efficiency is \",round(nc*100,2),\"%\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The overall efficiency is 46.67 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |