From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1052/CH32/EX32.5/325.sce | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 1052/CH32/EX32.5/325.sce (limited to '1052/CH32/EX32.5') 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 -- cgit