diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /3204 | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '3204')
-rw-r--r-- | 3204/CH8/EX8.2/Ex8_2.sce | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/3204/CH8/EX8.2/Ex8_2.sce b/3204/CH8/EX8.2/Ex8_2.sce index 0829fe80a..30f27faca 100644 --- a/3204/CH8/EX8.2/Ex8_2.sce +++ b/3204/CH8/EX8.2/Ex8_2.sce @@ -1,17 +1,25 @@ // Initilization of variables
V_r=20 // Velocity ratio
-// Refer the table given in the textbook for values of W,P,M.A & efficiency (eta)
+// Values from the table // Variables have been assumed
+// Values of W in N
+W=[30;40;50;60;70;80;90;100]
+// P in N
+P=[7;8.5;10;11.5;13.5;14.5;16;17.5]
+M.A=[W(1)/P(1);W(2)/P(2);W(3)/P(3);W(4)/P(4);W(5)/P(5);W(6)/P(6);W(7)/P(7);W(8)/P(8)]
+// Efficiency (n)
+n=(V_r^-1)*[M.A(1);M.A(2);M.A(3);M.A(4);M.A(5);M.A(6);M.A(7);M.A(8)]*100 // %
// Calculations
// Part (a)- Realtionship between W & P
// Here part a cannot be solved as it has variables which cannot be defined in Scilab. Ref.textbook for the solution
-// Part (b)- Graph between W & efficiency (eta)
-x=[0;30;40;50;60;70;80;90;100] // values for W // N
-y=[0;21.4;23.5;25;26.1;25.9;27.6;28.1;28.6] // values for efficiency (eta)
+// Part (b)- Graph between W & efficiency n(eta)
+x=[0;W(1);W(2);W(3);W(4);W(5);W(6);W(7);W(8)] // values for W // N
+y=[0;n(1);n(2);n(3);n(4);n(5);n(6);n(7);n(8)] // values for efficiency n (eta) // %
subplot(221)
xlabel("W (N)")
-ylabel("efficiency (eta)")
+ylabel("efficiency n (%)")
plot(x,y)
// Results
clc
printf('The graph is the solution')
// The value of m is found by drawing straight line on the graph and by taking its slope. Ref textbook for the solution
+// The curve of the graph may differ from textbook because of the graphical calculation.
|