blob: ae39f051fefb367a6212ca06448c3d505b029474 (
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
|
//Calculate the Increase in Entropy at consant pressure
//Example 5.6
clc;
clear;
m=200; //Mass of water in g
M=18.02; //Molar mass of water in g mol^-1
n=m/M; //Number of moles of water present in mol
t1=10; //Initial temperature of water in degree celcious
T1=10+273; //Initial temperature of water in K
t2=20; //Final temperature of water in degree celcious
T2=20+273; //Final temperature of water in K
delCpbar=75.3; //Molar heat capacity of water at consant pressure in J K^-1
delS=(n*delCpbar)*log(T2/T1); //Encrease in Entropy at constant pressure in J K^-1
printf("Encrease in Entropy = %.1f J K^-1",delS);
|