summaryrefslogtreecommitdiff
path: root/Generation_Of_Electrical_Energy_by_B._R._Gupta/Chapter23.ipynb
blob: 939a2b1ad2bd4d6b614fcf766ce97f5f744e8842 (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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
 "metadata": {
  "name": "",
  "signature": "sha256:787894feae8b9f9d4e62ecf0f6a482facb95a154f8e7d91d492783a33e4a8cc8"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Ch-23, Captive Power Generation"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "example:23.1 Page:500"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "sp=11*10**3;pc=300*10**6 ; ir=0.15 ;lp=15 ;fc=7 ;eff=0.35; cv=10100; mc=0.02; lf=0.8 ;er=860  #let the given variable be --sp=size of plant ,pc=project cost,ir=interest rate,lp=life of the plant,fc=fuel cost,eff=efficiency,cv=calorific value,er=860,mc=maintenance cost,lf=load factor,\n",
      "cac=pc/sp #let the variable cac be captel cost\n",
      "print \"capitel cost is %.1f/kW\"%(cac)\n",
      "crfd1=(1+ir)**(-lp)\n",
      "crfd=1-crfd1\n",
      "crf=ir/crfd #crf=capitel cost recovery factor\n",
      "print \"CRF=%.3f\"%(crf)\n",
      "anfc=cac*crf #anual fixed cost is prodect of capitel cost and capitel recovery factor\n",
      "print \"annual fixed cost is Rs%.2f/kW\"%(anfc)\n",
      "hr=er/eff #heat rate is energy ratedivided by efficiency\n",
      "print \"heat rate is %fcal/kWh\"%(hr) \n",
      "gpf=cv/hr #kW generated per liter is division of calorific value to hr\n",
      "print \"number of kWh generated per liter of fuel is %.2fkWh/litre\"%(gpf)\n",
      "fcp=fc/gpf #fuel cost per unit is fuel cost divided by generated per liter\n",
      "print \"fuel cost per unit Rs%fper kWh\"%(fcp)\n",
      "aomc=cac*mc #annual operation and maintenence cost\n",
      "print \"annual operation cost Rs.%.4f/kW\"%(aomc)\n",
      "afom=anfc+aomc \n",
      "print \"annual fixed, operation and maintence cost Rs.%.2f/kW\"%(afom)\n",
      "egpy=8760*lf #energy generated is 24*12*60\n",
      "print \"energygenerated per year is %dkWh\"%(egpy)\n",
      "afomc=afom/egpy\n",
      "print \"annual fixed operation and maintenence cost per kWh of energy %.4f/kWh\"%(afomc)\n",
      "gco=fcp+afomc #generated cost is sum of fuel cost and maintenence cost\n",
      "print \"generated cost is Rs%.4f/kWh\"%(gco)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "capitel cost is 27272.0/kW\n",
        "CRF=0.171\n",
        "annual fixed cost is Rs4663.98/kW\n",
        "heat rate is 2457.142857cal/kWh\n",
        "number of kWh generated per liter of fuel is 4.11kWh/litre\n",
        "fuel cost per unit Rs1.702970per kWh\n",
        "annual operation cost Rs.545.4400/kW\n",
        "annual fixed, operation and maintence cost Rs.5209.42/kW\n",
        "energygenerated per year is 7008kWh\n",
        "annual fixed operation and maintenence cost per kWh of energy 0.7434/kWh\n",
        "generated cost is Rs2.4463/kWh\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "example:23.2 page:501"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "sp=25*10**3 #size of the plant\n",
      "cc=800*10**6  #capital cost\n",
      "ir=0.1    #interest rate\n",
      "lp=20    #life of the plant\n",
      "mc=0.05  #maintence cost\n",
      "lf=0.6   #load factor \n",
      "sub=0.3  #subsidy\n",
      "nc=cc*(1-sub)\n",
      "nck=nc/sp \n",
      "crf=ir/(1-(1+ir)**(-lp))\n",
      "afc=nck*crf\n",
      "aomc=nck*mc\n",
      "tac=afc+aomc\n",
      "aeg=8760*lf\n",
      "gc=tac/aeg\n",
      "print \"net capital cost Rs%d*10**6 \\nnet capital cost per KW Rs%f/kW \\ncrf %f \\nannual fixed cost Rs%d per kW \\nannual operation and maintenance cost Rs%dper kW \\nTotal annual cost Rs%dper kW \\nAnnual energy generated per kW of plant capacity %.1fkWh \\ngeneration cost Rs%.3fkWh\"%(nc/(10**6),nck,crf,afc,aomc,tac,aeg,gc)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "net capital cost Rs560*10**6 \n",
        "net capital cost per KW Rs22400.000000/kW \n",
        "crf 0.117460 \n",
        "annual fixed cost Rs2631 per kW \n",
        "annual operation and maintenance cost Rs1120per kW \n",
        "Total annual cost Rs3751per kW \n",
        "Annual energy generated per kW of plant capacity 5256.0kWh \n",
        "generation cost Rs0.714kWh\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Problem:23.11.2 Page:505"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "pp=11 #power capacity\n",
      "cost=35 #cost of the system\n",
      "In=0.14 #interest\n",
      "lis=30 #life of system\n",
      "sv=0.15 #salvage value\n",
      "es=13.5*10**6 #energy sent\n",
      "los=0.05 #losses\n",
      "omc=0.02 #O&M charges\n",
      "gr=0.006 #general revenue\n",
      "rd=(1-sv)*100/lis\n",
      "rdd=rd/100\n",
      "tac=cost*(In+omc+rdd+gr)\n",
      "ery=es*(1-los)\n",
      "wc=(tac/ery)*10**5\n",
      "print \"rate of depreciation is %.3fpercent \\ntotal annual cost is Rs.%.5f lakhs/year \\nenergy received per year %ekWh/year \\nwheeling charges Rs%f\"%(rd,tac,ery,wc)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "rate of depreciation is 2.833percent \n",
        "total annual cost is Rs.6.80167 lakhs/year \n",
        "energy received per year 1.282500e+07kWh/year \n",
        "wheeling charges Rs0.053034\n"
       ]
      }
     ],
     "prompt_number": 3
    }
   ],
   "metadata": {}
  }
 ]
}