blob: 6b98548abe6d7964b70a1d10c7fc89210b7476f2 (
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
|
//Chapter-1, Illustration 3, Page 16
//Title: Fuels and Combustion
//=============================================================================
clc
clear
//INPUT DATA
C=0.78;//Percentage composition of Carbon
H=0.06;//Percentage composition of Hydrogen
O=0.078;//Percentage composition of Oxygen
N=0.012;//Percentage composition of Nitrogen
S=0.03;//Percentage composition of Sulphur
//CALCULATIONS
m=(11.5*C)+(34.5*(H-(O/8)))+(4.3*S);//Minimum quantity of air required in kg
mt=((11*C)/3)+(9*H)+(2*S)+(8.32+N);//Total mass of products of combustion in kg
//OUTPUT
mprintf('Minimum quantity of air required for complete combustion is %3.2f kg \n Total mass of products of combustion is %3.3f kg',m,mt)
//==============================END OF PROGRAM=================================
|