summaryrefslogtreecommitdiff
path: root/629/CH6/EX6.6/example6_6.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /629/CH6/EX6.6/example6_6.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 '629/CH6/EX6.6/example6_6.sce')
-rw-r--r--629/CH6/EX6.6/example6_6.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/629/CH6/EX6.6/example6_6.sce b/629/CH6/EX6.6/example6_6.sce
new file mode 100644
index 000000000..ea9d6a092
--- /dev/null
+++ b/629/CH6/EX6.6/example6_6.sce
@@ -0,0 +1,24 @@
+clear
+clc
+//Example 6.6 FORCES ACTING ON A PIPE BEND
+p=75*10^3 //[Pa]
+r=0.5; //[m]
+A=%pi*r^2 //area[m^2]
+S=0.94;
+rho=S*1000 //drnsity[kg/m^3]
+Gamma=S*9.81 //specific weight of oil[kN/m^3]
+V=1.2; //volume of oil[m^3]
+Q=2; //[m^3/s]
+m=rho*Q //mass flow rate[kg/s]
+v=2.55; //[m/s]
+theta=30; //degrees
+//Reaction force
+//Rx+p*A-p*A*cos(theta)=m*v*cos(theta)-m*v
+Rx=-(p*A+m*v)*(1-cosd(theta))/10^3 //[kN]
+//Ry+p*A*sin(theta)=-m*v*sin(theta)
+Ry=-(p*A+m*v)*sind(theta)/10^3 //[kN]
+We=4; //empty weight of bend[kN]
+Rz=(Gamma*V)+We //[kN]
+//Reaction force vector
+R=[Rx Ry Rz] //[kN]
+printf("\n The net force required to hold the bend in place, F =(%.2f kN)i+(%.1f kN)j+(%.1f kN)k.\n",R(1),R(2),R(3)) \ No newline at end of file