summaryrefslogtreecommitdiff
path: root/944/CH3/EX3.6/example3_6_TACC.sce
blob: fc4bf00e4ce1ab9bca0c2ee814490034f627995a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//example 3.6

clear;
clc;

//given:
T1=323;//intial temperature of water[K]
T2=373;//final temperature of water[K]
Cp=75.29;//specific heat of water[J/K/mol]
w=100;//weight of water[g]
mol.wt=18;//molecular weight of water[g/mol]

//to find the change in enthalpy(H) of water 
n=w/mol.wt;//no. of moles of water[moles]
H=(n*Cp*(T2-T1))*0.001;//change in enthalpy of water[J]
printf("The change in enthalpy of water is %f J",H);