blob: 63838ea4f484ce92b837d5e96007d7d83273ba7c (
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
|
//Calculate the Increase in Entropy at constant 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 Celius
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 constant pressure in J K^-1
delS=(n*delCpbar)*log(T2/T1); //Increase in Entropy at constant pressure in J K^-1
printf("Encrease in Entropy = %.1f J K^-1",delS);
|