summaryrefslogtreecommitdiff
path: root/409/CH21/EX21.4/Example21_4.sce
blob: 1e4c13940928986b4c24d3b97a2637bd112b290d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear ;
clc;
// Example 21.4
printf('Example 21.4\n\n');
//page no. 629
// Solution

//Given
//Constant volume process 
mol_air = 10 ;// Moles of air-[kg mol]
T1 = 60+273 ;// Initial temperature of air-[K]
T2 = 30+273 ;// final temperature of air-[K]
// Additional data needed
Cv = 2.1*10^4 ; // Specific heat capacity of air at constant volume-[J/(kg mol*C)]

// Use eqn. 21.6 for del_U
del_U = integrate('mol_air*Cv','T',T1,T2) ;//Change in internal energy-[J]
printf('\nChange in internal energy is %.1e J .\n ',del_U);