blob: ed6dd72b1c726cea852a97d40670c017bbccdb6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc
clear
//Initialization of variables
cp=0.25
T=3460 //R
T0=520 //R
dG=1228 //Btu/lbm
//calculations
hf=cp*(T-T0)-T0*cp*log(T/T0)
dC=hf-dG
Ec=hf/dG
//results
printf("Loss of available energy = %d Btu/lbm mixture ",dC)
printf("\n Effectiveness of combustion = %.3f ",Ec)
|