From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2175/CH3/EX3.5/3_5.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 2175/CH3/EX3.5/3_5.sce (limited to '2175/CH3/EX3.5') diff --git a/2175/CH3/EX3.5/3_5.sce b/2175/CH3/EX3.5/3_5.sce new file mode 100755 index 000000000..e1aea9e33 --- /dev/null +++ b/2175/CH3/EX3.5/3_5.sce @@ -0,0 +1,22 @@ +clc; +T1=295;//C +p1=1.02;//bar +p2=6.8;//bar +y=1.4; +v1=0.015;//m^3 +cv=0.718; +R=0.287 + +T2=T1*(p2/p1)^((y-1)/y); +disp("final temperature is:"); +disp("k",T2); + +v2=v1*{(p1/p2)^(1/y)}; +disp("final volume is:"); +disp("m^3",v2); + +w=cv*(T2-T1); +m=p1*v1*10^5/(10^3*R*T1); +W=w*m; +disp("total work done is:"); +disp("kJ",W) -- cgit