summaryrefslogtreecommitdiff
path: root/3856/CH4/EX4.5/Ex4_5.sce
blob: 032b222db2b8a4b65bd50c8b12532431c4e6bb9f (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
31
32
33
//Calculate the change in Enternal energy and change in Enthalpy for heating of Xenon 

//Example4.5

clc;

clear;

T1=300;  //Initial temperature in K

T2=400;  //Final temperature in K

m=55.40;  //Mass of Xenon in g

M=131.29;  //Molecular mass of Xenon

n=m/M;  //Number of mole of Xenon in mol

R=8.314;  //Gas constant in J K^-1 mol^-1

Cbarv=(3/2)*R;  //Molar constant volume in J K^-1 mol^-1

delT=T2-T1;  //Thange in temperature in K

delU=n*delT*Cbarv;  //Change in Enternal energy in J

printf("Change in Enternal energy = %.0f J",delU);

Cbarp=(5/2)*R;  //Molar constant pressure in J K^-1 mlo^-1

delH=n*Cbarp*delT;  //Change in Enthalpy in J

printf("\nChange in Enthalpy = %.0f J",delH);