summaryrefslogtreecommitdiff
path: root/3720/CH6/EX6.8/Ex6_8.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3720/CH6/EX6.8/Ex6_8.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 '3720/CH6/EX6.8/Ex6_8.sce')
-rw-r--r--3720/CH6/EX6.8/Ex6_8.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3720/CH6/EX6.8/Ex6_8.sce b/3720/CH6/EX6.8/Ex6_8.sce
new file mode 100644
index 000000000..2ef8824a0
--- /dev/null
+++ b/3720/CH6/EX6.8/Ex6_8.sce
@@ -0,0 +1,17 @@
+//Example 6_8
+clc;clear;
+// Given values
+rho=1000;//The density of water in kg/m^3
+D=0.10;// Diameter in m
+V=3;// Average velocity in m/s
+g=9.81;// The acceleration due to gravity m/s^2
+m=12;//Mass per meter length in kg/m
+r_1=0.5;
+r_2=2;// The average moment arm at inlet & outlet in m
+
+// Calculation
+A_c=((%pi*D^2)/4);// m^2
+m_1=rho*A_c*V;// The mass flow rate in kg/s
+W=m*g;//The weight of the horizontal section of the pipe in N
+M_a=(r_1*W)-(r_2*m_1*V);// N.m
+printf("The bending moment acting at the base of the pipe (point A)=%0.1f N.m\n",M_a);