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 /779/CH8/EX8.20 | |
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 '779/CH8/EX8.20')
-rwxr-xr-x | 779/CH8/EX8.20/8_20.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/779/CH8/EX8.20/8_20.sce b/779/CH8/EX8.20/8_20.sce new file mode 100755 index 000000000..0e5a4bc8b --- /dev/null +++ b/779/CH8/EX8.20/8_20.sce @@ -0,0 +1,24 @@ +P1 = 1; T1 = 273+30;
+P2 = 3.5; T2 = 141+273 ; V = 90;
+T0 = 303;
+// Part (a)
+g = 1.4;
+T2s = T1*((P2/P1)^((g-1)/g));
+disp("As T2s> T2 so the process must be polytropic")
+// Part (b)
+p = log(P2/P1); q = log(T2/T1);
+n = p/(p-q);
+disp(n,"The polytropic index is")
+// Part (c)
+cp = 1.0035; R = 0.287;
+Wa = cp*(T1-T2)-(V2^2/2)*1e-03 ;
+Wt = -R*T0*log(P2/P1)-(V2^2/2)*1e-03;
+Nt = Wt/Wa;
+disp(Nt,"The isothermal effiency is")
+// Part (d)
+f12 = cp*(T1-T2) + T0*((R*log(P2/P1))-(cp*log(T2/T1))) - (V2^2/2)*1e-03 ;
+I = f12-Wa ;
+disp("kW respectively",I,"and",f12,"The minimum work input and irreversibility are")
+// Part (e)
+n2 = (f12/Wa);
+disp(n2,"Second law efficiency is")
|