summaryrefslogtreecommitdiff
path: root/3718/CH13/EX13.8/Ex13_8.sce
blob: 47d526e4ca605f1b1d0575067cb63a339d542b36 (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
//Chapter 13: Fuel and Combustions
//Problem: 8
clc;

//Declaration of Variables
C = 86      // %
H = 4       // %
N = 1.3     // %
S = 3       // %
O = 4       // %
Ash = 1.7   // %
wt = 500    // g

// Solution
wt_C = C / 100.0
wt_S = S / 100.0
wt_H = H / 100.0
wt_O = O / 100.0

mprintf("Nitrogen and ash are incombustible, so they do not require oxygen\n")

wt_O_C = 32 / 12.0 * wt_C
wt_O_S = 32 / 32.0 * wt_S
wt_O_H = 32 / 4.0 * wt_H

totw = wt_O_H + wt_O_S + wt_O_C
wt_O_n = totw - wt_O
wt_a = (100.0 / 23.0 * wt_O_n) * 500 / 1000.0

mprintf(" Minimum Wt. of air required by 500g of fuel %.2f kg",wt_a)