summaryrefslogtreecommitdiff
path: root/551/CH4/EX4.30/30.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /551/CH4/EX4.30/30.sce
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 '551/CH4/EX4.30/30.sce')
-rwxr-xr-x551/CH4/EX4.30/30.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/551/CH4/EX4.30/30.sce b/551/CH4/EX4.30/30.sce
new file mode 100755
index 000000000..1499b08a1
--- /dev/null
+++ b/551/CH4/EX4.30/30.sce
@@ -0,0 +1,18 @@
+clc
+n=1.3;
+m=1; //kg
+p1=1.1; //bar
+T1=300; //K
+p2=6.6; //bar
+R0=8314;
+M=30;
+cp=1.75; //kJ/kg.K
+R=R0/M/1000; //kJ/kg.K
+cv=cp - R;
+y=cp/cv;
+T2=T1 *(p2/p1)^((n-1)/n);
+W=R*(T1-T2)/(n-1);
+Q=((y-n)/(y-1))*W;
+disp("Heat supplied = ")
+disp(Q)
+disp("kJ/kg") \ No newline at end of file