summaryrefslogtreecommitdiff
path: root/Internal_Combustion_Engines_by_H._B._Keswani/ch6.ipynb
blob: 22e9bcd21cc44be484f4f6cf9e3cc5a2b27eb6ec (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:898a7449413e7734ec995548ea6831e656bb39837964368aebad3ba68a836203"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 6 : Combustion Charts"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 6.1  Page no :  123"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\t\t\t\t\t\n",
      "#Input data\n",
      "r = 7.5\t\t\t\t\t#Compression ratio\n",
      "\t\t\t\t\t#Data from combustion chart\n",
      "p = [1,15.1,26.95,1.95]\t\t\t\t\t#Pressure of air fuel mixture in kg/cm**2\n",
      "T = [60,460,1150,435]\t\t\t\t\t#Temperature of air fuel mixture in K\n",
      "V = [16.98,2.264,2.264,16.98]\t\t\t\t\t#Volume in m**3/kg\n",
      "U = [17,78.8,212,80]\t\t\t\t\t#Internal energy in kcal/kg\n",
      "S = [0.07,0.07,0.22,0.22]\t\t\t\t\t#Entropy in kcal/kg.degree C\n",
      "g = 1.4\t\t\t\t\t#Ratio of specific heats\n",
      "\n",
      "\t\t\t\t\t\n",
      "#Calculations\n",
      "n = (((U[2]-U[3])-(U[1]-U[0]))/(U[2]-U[1]))*100\t\t\t\t\t#Thermal efficiency in percent\n",
      "na = (1-(1/r)**(g-1))*100\t\t\t\t\t#Air standard efficiency in percent\n",
      "\n",
      "\t\t\t\t\t\n",
      "#Output\n",
      "print 'Thermal efficiency is %3.1f percent  \\\n",
      "\\nAir standard efficiency is %3.1f percent'%(n,na)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Thermal efficiency is 52.7 percent  \n",
        "Air standard efficiency is 55.3 percent\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 6.2  Page no :  127"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\t\t\t\t\t\n",
      "#Input data\n",
      "\t\t\t\t\t#Data from combustion chart\n",
      "p = [1,33,33,1]\t\t\t\t\t#Pressure of air fuel mixture in kg/cm**2\n",
      "T = [65,600,1450,725]\t\t\t\t\t#Temperature of air fuel mixture in K\n",
      "V = [16,1.23,3.45,16]\t\t\t\t\t#Volume in m**3/kg\n",
      "U = [11.8,110,295,140]\t\t\t\t\t#Internal energy in kcal/kg\n",
      "H = [22.7,150,395,225]\t\t\t\t\t#Enthalpy in kcal/kg\n",
      "S = [0.068,0.068,0.264,0.264]\t\t\t\t\t#Entropy in kcal/kg.degree C\n",
      "\n",
      "\t\t\t\t\t\n",
      "#Calculations\n",
      "r = (V[0]/V[1])\t\t\t\t\t#Compression ratio\n",
      "q = (H[2]-H[1])\t\t\t\t\t#Heat supplied in kcal/kg\n",
      "qre = (U[3]-U[0])\t\t\t\t\t#Heat rejected in kcal/kg\n",
      "nt = ((q-qre)/q)*100\t\t\t\t\t#Thermal efficiency in percent\n",
      "\n",
      "\t\t\t\t\t\n",
      "#Output\n",
      "print 'a)Compression ratio is %3.0f  \\\n",
      "\\nb) Heat supplied to the cycle is %3.0f kcal/kg  \\\n",
      "\\nc) Heat rejected by the cycle is %3.2f kcal/kg  \\\n",
      "\\nd) Thermal efficiency is %3.2f percent'%(r,q,qre,nt)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "a)Compression ratio is  13  \n",
        "b) Heat supplied to the cycle is 245 kcal/kg  \n",
        "c) Heat rejected by the cycle is 128.20 kcal/kg  \n",
        "d) Thermal efficiency is 47.67 percent\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 6.3  Page no :  130"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math \n",
      "\t\t\t\t\t\n",
      "#Input data\n",
      "\t\t\t\t\t#Data from combustion chart\n",
      "p = [1,51.5,77.25,77.25,3.75]\t\t\t\t\t#Pressure of air fuel mixture in kg/cm**2\n",
      "T = [16,1,1,1.5,16]\t\t\t\t\t#Temperature of air fuel mixture in K\n",
      "V = [65,745,1400,2200,1030]\t\t\t\t\t#Volume in m**3/kg\n",
      "U = [14.7,135,275,475,197]\t\t\t\t\t#Internal energy in kcal/kg\n",
      "H = [21.9,85,372,625,280]\t\t\t\t\t#Enthalpy in kcal/kg\n",
      "S = [0.068,0.068,0.19,0.32,0.32]\t\t\t\t\t#Entropy in kcal/kg.degree C\n",
      "\n",
      "\t\t\t\t\t\n",
      "#Calculations\n",
      "nth = (((U[2]-U[1])+(H[3]-H[2])-(U[4]-U[0]))/((U[2]-U[1])+(H[3]-H[2])))*100\t\t\t\t\t#Thermal efficiency in percent\n",
      "\n",
      "\t\t\t\t\t\n",
      "#Output\n",
      "print 'Thermal efficiency is %3.2f percent'%(nth)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Thermal efficiency is 53.61 percent\n"
       ]
      }
     ],
     "prompt_number": 5
    }
   ],
   "metadata": {}
  }
 ]
}