summaryrefslogtreecommitdiff
path: root/2417/CH2/EX2.12/Ex2_12.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2417/CH2/EX2.12/Ex2_12.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2417/CH2/EX2.12/Ex2_12.sce')
-rwxr-xr-x2417/CH2/EX2.12/Ex2_12.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2417/CH2/EX2.12/Ex2_12.sce b/2417/CH2/EX2.12/Ex2_12.sce
new file mode 100755
index 000000000..0b583dce7
--- /dev/null
+++ b/2417/CH2/EX2.12/Ex2_12.sce
@@ -0,0 +1,20 @@
+clear;
+clc;
+printf("\t\t\tProblem Number 2.12\n\n\n");
+// Chapter 2: Work, Energy, and Heat
+// Problem 2.12 (page no. 75)
+// Solution
+
+printf("At the entrance of device,\n");
+p1=200*1000; //200kPa*1000 Pa/kPa //pressure at the entrance //Unit:N/m^2
+Rho1=1000; //kg/m^3 //Fluid density at entrance
+v1=1/Rho1; //Specific Volume at entrance or reciprocal of fluid density
+FW1=p1*v1; //Flow work at entrance //Unit:N*m/kg
+printf("Flow work = %fN*m/kg\n",FW1);
+
+printf("At the exit of device,\n");
+p2=100*1000; //200kPa*1000 Pa/kPa //pressure at the exit //Unit:N/m^2
+Rho2=250; //kg/m^3 //Fluid density at exit
+v2=1/Rho2; //Specific Volume at entrance or reciprocal of fluid density
+FW2=p2*v2; //Flow work at exit//Unit:N*m/kg
+printf("Flow work = %f N*m/kg\n",FW2);