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 /1052/CH32/EX32.5 | |
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 '1052/CH32/EX32.5')
-rwxr-xr-x | 1052/CH32/EX32.5/325.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/1052/CH32/EX32.5/325.sce b/1052/CH32/EX32.5/325.sce new file mode 100755 index 000000000..c16825bf7 --- /dev/null +++ b/1052/CH32/EX32.5/325.sce @@ -0,0 +1,19 @@ +clc;
+//Example 32.5
+//page no 512
+printf("Example 32.5 page no 512\n\n");
+// a fluid is transported 4 miles under turbulent flow conditions
+//we have two choices in designing the system
+OC_a=20000//per year pressure drop costs for the 2 inch ID pipe,$
+CRF=0.1//capital recovery factor for both pipe
+OC_b=OC_a/16//operating cost associated with the pressure drop cost per year for 4 inch pipe
+d=4*5280//distance,feet
+c_a=1// 2 inch ID pipe cost per feet,$
+c_b=6// 4 inch ID pipe cost per feet,$
+CC_a=d*c_a*CRF//capital cost for 2 inch ID pipe,$
+CC_b=d*c_b*CRF//capital cost for 4 inch ID pipe,$
+TC_a= OC_a +CC_a//total cost associated with 2 inch pipe
+printf("\n total cost with 2 inch pipe TC_a=%f $",TC_a);
+TC_b=OC_b + CC_b//total cost associated with 4 inch pipe
+printf("\n total cost with 4 inch pipe TC_b=%f $",TC_b);
+//from result we can conclude that 4 inch pipe is more economical
|