blob: 3de8d10e2e0f08e4ff69ab846b26098c5c21a184 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
//initialisation of variables
P= 100 //psia
V= 3 //cu ft
P1= 20 //psia
n= 1.4
//CALCULATIONS
V1= V*(P/P1)^(1/n)
W= (P1*V1*144-P*V*144)/(1-n)
//RESULTS
printf ('P dV work for this process= %.f ft lb',W)
|