diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2120/CH4/EX4.8/ex4_8.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2120/CH4/EX4.8/ex4_8.sce')
-rwxr-xr-x | 2120/CH4/EX4.8/ex4_8.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/2120/CH4/EX4.8/ex4_8.sce b/2120/CH4/EX4.8/ex4_8.sce new file mode 100755 index 000000000..631f80e32 --- /dev/null +++ b/2120/CH4/EX4.8/ex4_8.sce @@ -0,0 +1,25 @@ +//Exa 4.8
+clc;
+clear;
+close;
+// Given data
+p1 = 0.01;// in N/mm^2
+p1 = p1 * 10^3;// in kN/m^2
+p2 = 50;// in kN/m^2
+v1 = 5;// in m^3
+v2 = 1.5;// in m^3
+Gamma = 1.4;
+// Formula p1*v1^n = p2*v2^n
+n= log(p2/p1)/log(v1/v2);
+disp(n,"Part (a) The value of n is : ")
+disp("The process followed during air compression is POLYTROPIC");
+// Part (b)
+disp("Part (b) The law of the process is p*v^"+string(n)+" = constant");
+// Part (c)
+W= (p1*v1-p2*v2)/(n-1);// in kNm or (kJ)
+disp(W,"Part (c) Work done during the process in kJ is : ");
+disp("The -ve sign indicates that the work has been done on the system")
+// Part (d)
+Q = ((Gamma - n)/(Gamma - 1) * W);// in kJ
+disp(Q,"Part (d) Heat transfer during the process in kJ is :");
+disp("The -ve sign indicates that the heat is rejected from the system")
|