summaryrefslogtreecommitdiff
path: root/2144/CH3/EX3.12/ex3_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '2144/CH3/EX3.12/ex3_12.sce')
-rwxr-xr-x2144/CH3/EX3.12/ex3_12.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2144/CH3/EX3.12/ex3_12.sce b/2144/CH3/EX3.12/ex3_12.sce
new file mode 100755
index 000000000..40e7b1e67
--- /dev/null
+++ b/2144/CH3/EX3.12/ex3_12.sce
@@ -0,0 +1,18 @@
+// Exa 3.12
+clc;
+clear;
+close;
+// Given data
+Gamma = 1.4;
+P1 = 780;// in kN/m^2
+P2 = 100;// in kN/m^2
+V1 = 750;// in cm^3
+V1= V1*10^-6;// in m^3
+V2 = (1/5)*V1;// in m^3
+n = (log(P1/P2))/(log(V1/V2));
+disp(n,"The value of index is");
+W = (P1*V2-P2*V1)/(1-n);// in kJ
+disp(W,"Work done in kJ is");
+Q = ((Gamma - n)/(Gamma-1)) * (-W);// in kJ
+disp("Heat rejected during Compression in kJ is "+string(Q)+" kJ or "+string(Q*10^3)+" joules");
+