summaryrefslogtreecommitdiff
path: root/555/CH5/EX5.1/1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /555/CH5/EX5.1/1.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '555/CH5/EX5.1/1.sce')
-rw-r--r--555/CH5/EX5.1/1.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/555/CH5/EX5.1/1.sce b/555/CH5/EX5.1/1.sce
new file mode 100644
index 000000000..855710001
--- /dev/null
+++ b/555/CH5/EX5.1/1.sce
@@ -0,0 +1,23 @@
+// Implementation of example 5.1
+// Basic and Applied Thermodynamics by P.K.Nag
+
+clc
+clear
+
+//Work done W, Velocity V, Pressure p, Specific volume v, Height Z
+V1=7 // m/sec
+p1=100 // kPa
+v1=0.95 // m^3/kg
+Q=-58 // kW
+V2=5 // m/sec
+p2=700 // kPa
+v2=0.19 // m^3/kg
+w=0.5 // kg/sec
+dU=90 // kJ/kg (since its given that u2=u1+90)
+// steady flow energy equation is w(u1+p1v1+V1^2/2+Z1g)+dQ/dt=w(u2+p2v2+V2^2/2+Z2g)+dW/dt
+W=-w*[dU+(p2*v2-p1*v1)+(V2*V2-V1*V1)/2000]+Q;
+printf("rate of work input = %.2f kW \n",W);
+temp=(v1*V2)/(v2*V1);
+ratio=sqrt(temp);
+printf("ratio of diameter is = %.2f",ratio);
+// end \ No newline at end of file