summaryrefslogtreecommitdiff
path: root/476/CH2/EX2.1/Example_2_1.sce
blob: 39b5aa4622ca938db891dfa19ec72bb213853371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//A Textbook of Chemical Engineering Thermodynamics
//Chapter 2
//First Law of Thermodynamics
//Example 1


clear;
clc;


//Given
W = -2.25*745.7; //work done on system in J/s
Q = -3400*(10^3)/3600; //heat transferred to the surrounding in J/s

//To find the change in internal energy
//Using equation 2.4 (Page no. 26)
U = Q-W; //change in internal energy in J/s
mprintf('Internal energy of system increases by %f J/s',U);

//end