summaryrefslogtreecommitdiff
path: root/2006/CH6/EX6.11/ex6_11.sce
blob: 187504be3352b749bbb3125abdb64f2adaebe8cf (plain)
1
2
3
4
5
6
7
8
9
clc;
p1=5; // Initial pressure of argon gas in bar
T1=30; // Initial temperature of argon gas in degree celcius
v1=1; // Initial volume of argon gas in m^3 by assumption
v2=2*v1; // Final volume of argon gas in m^3
R=8.3144/40; // Characteristic gas constant of argon gas in kJ/kg K
p2=p1*(v1/v2); // Final pressure of argon gas
delta_s= R*log (v2/v1); // change in entropy (choosing the reversible isothermal path)
disp ("kJ/kg K",delta_s,"change in entropy (choosing the reversible isothermal path) = ","bar",p2,"Final pressure of argon gas =");