summaryrefslogtreecommitdiff
path: root/2465/CH4/EX4.16/Example_16.sce
blob: 0b2037a7752f3a44fd423e8d646c93315856f4d8 (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
//Chapter-4,Example 16,Page 97
clc;
close;

//since the operation is isothermal & hte gas is ideal therefore..

delta_E= 0  // from 1st law of thermodynamics

P= 1   //pressure in atm

V1= 10   // volume in cubic decimeter

V2= 20   // volume in cubic decimeter

W= P*(V2-V1)*(8.314/0.0821)   // work done by system

q=W   //from 1st law of thermodynamics

delta_H = delta_E + W

printf(' q = %.2f J',q)

printf('\n  W = %.2f',W)

printf('\n  delta_E = %.f J',delta_E)

printf('\n  delta_H = %.2f J',delta_H)