summaryrefslogtreecommitdiff
path: root/2090/CH3/EX3.6/Chapter3_Example6.sce
blob: 0a6144c0f35491df7a6fe169e63e7c81637fecad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc
clear
//Input data
t=25;//The temperature of both reactants and products in degree centigrade
p=1;//The pressure of both reactants and products in bar

//Calculations 
h=0;//Enthalpy of all elements at given temp and pressure 
hf1=-103.85;//The enthalpy of the compound C3H8 in the reactants side at given temp and pressure in MJ/kmol
hf2=-393.52;//The enthalpy of carbondioxide for the given temp and pressure in MJ/kmol
hf3=-285.8;//The enthalpy of the water for the given temp and pressure in MJ/kmol
hf4=[3*hf2]+[4*hf3];//Total enthalpy in the products side in MJ/kmol
Q=hf4-hf1;//The heat transfer per mole of fuel in MJ/kmol fuel

//Output
printf(' The heat transfer per mole of fuel = %3.2f kJ/mol fuel',Q)