summaryrefslogtreecommitdiff
path: root/2175/CH3/EX3.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2175/CH3/EX3.5
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2175/CH3/EX3.5')
-rwxr-xr-x2175/CH3/EX3.5/3_5.sce22
1 files changed, 22 insertions, 0 deletions
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)