summaryrefslogtreecommitdiff
path: root/1019/CH3/EX3.18/Example_3_18.sce
blob: 617bb0481420eab0add02cd3a1befb24b7cb8e79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Example 3.18
clear;
clc;

//Given
DHOH=463;//bond energy of O-H bond in kJ
DHCO=350;//bond energy of C-O bond in kJ
DHCC=348;//bond energy of C-C bond in kJ
DHCH=413;//bond energy of C-H bond in kJ
DHOO=249.17;//half of the bond energy in oxygen molecule in kJ
DHHH=217.94;//half of the bond energy in hydrogen molecule in kJ
DHC=716.7;//energy required to obtain free carbon atom from graphite in kJ

//To determine enthalpy of formation of dimethyl ether
BE=(6*DHCH)+(2*DHCO);//total bond enthalpy in kJ
EA=(6*DHHH)+(2*DHC)+DHOO;//enthalpy of atomization in kJ
delHf=EA-BE;//enthalpy of formation in kJ
mprintf('Enthalpy of formation of dimethyl ether = %f kJ',delHf);
//end