blob: c6e5a51b2e8c87a8a7158a53dadeb632bae3d792 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Implementation of example 3.1
// Basic and Applied Thermodynamics by P.K.Nag
// page 54
clc
clear
P=760 //(mm Hg)
dv=0.5 //(m^3)
// since P is in mm Hg and change in volume(dv) is in m^3,so we'll change the unit of pressure
p=101.325 //(kN/m^2)
Wd=(p*dv);
disp("work done by system =")
disp(Wd)
disp("kJ")
// in this work is done by the system,so it is positive
|