summaryrefslogtreecommitdiff
path: root/2510/CH6/EX6.2
diff options
context:
space:
mode:
Diffstat (limited to '2510/CH6/EX6.2')
-rwxr-xr-x2510/CH6/EX6.2/Ex6_2.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2510/CH6/EX6.2/Ex6_2.sce b/2510/CH6/EX6.2/Ex6_2.sce
new file mode 100755
index 000000000..1e54feacd
--- /dev/null
+++ b/2510/CH6/EX6.2/Ex6_2.sce
@@ -0,0 +1,16 @@
+//Variable declaration:
+NPS = 3 //Nominal pipe size (inch)
+SN = 40 //Schedule number
+
+//Calculation:
+//From Table 6.2, we obtain that the inside diameter of steel pipe is ID = 3.068 in, outside diameter OD = 3.5 in, wal thickness WT = 0.216 in, and pipe weight PW = 7.58 lb/ft.
+ID = 3.068
+OD = 3.5
+WT = 0.216
+PW = 7.58
+
+//Result:
+printf("The inside diameter of steel pipe is : %f in",ID)
+printf("The outside diameter of steel pipe is : %f in",OD)
+printf("The wall thickness of steel pipe is : %f in",WT)
+printf("The weight of steel pipe is : %f lb/ft.",PW)