summaryrefslogtreecommitdiff
path: root/Non_Conventional_Energy_Resources/Chapter2.ipynb
blob: 17e1a25eb25800163150781a8a79df82bb6798c8 (plain)
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
{

 "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": {}

  }

 ]

}