0% found this document useful (0 votes)
29 views

Matlab Program For The Problem Is As Follows-: Output

This Matlab program calculates the adiabatic flame temperature of propane (C3H8). It takes in user inputs for the moles of products, initial temperature, heat capacities, and heat of combustion. It then calculates the total heat capacity of products and the adiabatic flame temperature using the equation that the heat of reaction equals the change in enthalpy from initial to final temperatures. The output displays the calculated adiabatic flame temperature of 2568 K.

Uploaded by

Bhushan Patil
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Matlab Program For The Problem Is As Follows-: Output

This Matlab program calculates the adiabatic flame temperature of propane (C3H8). It takes in user inputs for the moles of products, initial temperature, heat capacities, and heat of combustion. It then calculates the total heat capacity of products and the adiabatic flame temperature using the equation that the heat of reaction equals the change in enthalpy from initial to final temperatures. The output displays the calculated adiabatic flame temperature of 2568 K.

Uploaded by

Bhushan Patil
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Matlab program for the problem is as followsdisp('************ADIABATIC FLAME TEMPERATURE*************');

fprintf('\n');
disp('Eqn for adiabatic flame temperature of a steady flow process is given by :-');
disp('Q-W=Hprod-Hreact');
disp('Here, Hprod=Hreact ');
fprintf('\n');
disp('The balance chemical reaction for C3H8 is as follows :- ');
disp('C3H8(g) + (5)O2(g) = (3)CO2(g) + (4)H2O(g) + (18.81)N2(g)');
fprintf('\n');
disp('*****adiabatic flame temperature for constant pressure process***** :-');
fprintf('\n');
N1=input('Enter the values of no of moles of CO2 :- ');
N2=input('Enter the values of no of moles of H2O :- ');
N3=input('Enter the values of no of moles of N2 :- ');
N4=input('Enter the values of no of moles of C3H8 :- ');
N5=input('Enter the values of no of moles of O2 :- ');
fprintf('\n');
disp('Here, Hprod=Hreact ');
fprintf('\n');
Ti=input('Enter the value of reactant temperature at initial condition :- ');
Cp1=input('Enter the value of specific heat of CO2 in KJ/kmolK :- ');
Cp2=input('Enter the value of specific heat of H2O in KJ/kmolK :- ');
Cp3=input('Enter the value of specific heat of N2 in KJ/kmolK :- ');
fprintf('\n');
Q1=input('Enter the value of the heat of combustion of propane= ');
Cp6=((N1*Cp1+N2*Cp2+N3*Cp3));
Tadi=((Q1/Cp6)+(Ti));
fprintf('\n');
disp('The Adiabatic Flame Temperature Tadi is given as follows :- ');
disp(Tadi);
fprintf('\n\n');
OUTPUT-

************ADIABATIC FLAME TEMPERATURE*************

Eqn for adiabatic flame temperature of a steady flow process is given by :Q-W=Hprod-Hreact
Here, Hprod=Hreact

The balance chemical reaction for C3H8 is as follows :C3H8(g) + (5)O2(g) = (3)CO2(g) + (4)H2O(g) + (18.81)N2(g)

*****adiabatic flame temperature for constant pressure process***** :-

Enter the values of no of moles of CO2 :- 3


Enter the values of no of moles of H2O :- 4
Enter the values of no of moles of N2 :- 18.81
Enter the values of no of moles of C3H8 :- 1
Enter the values of no of moles of O2 :- 5

Here, Hprod=Hreact

Enter the value of reactant temperature at initial condition :- 298


Enter the value of specific heat of CO2 in KJ/kmolK :- 0.05632
Enter the value of specific heat of H2O in KJ/kmolK :- 0.04365
Enter the value of specific heat of N2 in KJ/kmolK :- 0.03371
Enter the value of the heat of combustion of propane= 2220
The Adiabatic Flame Temperature Tadi is given as follows :2.5688e+003

>>

You might also like