summaryrefslogtreecommitdiff
path: root/3705/CH1/EX1.2/Ex1_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3705/CH1/EX1.2/Ex1_2.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 '3705/CH1/EX1.2/Ex1_2.sce')
-rw-r--r--3705/CH1/EX1.2/Ex1_2.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/3705/CH1/EX1.2/Ex1_2.sce b/3705/CH1/EX1.2/Ex1_2.sce
new file mode 100644
index 000000000..f083daa4e
--- /dev/null
+++ b/3705/CH1/EX1.2/Ex1_2.sce
@@ -0,0 +1,29 @@
+
+clear//
+
+//Variable Declaration
+Ay=40 //Vertical Reaction at A in kN
+Hy=60 //Vertical Reaction at H in kN
+Hx=0 //Horizontal Reaction at H in kN
+y=3 //Height in m
+x=5 //Distance in m
+p=4 //Panel distance in m
+A=900 //Area of the member in mm^2
+P_C=30 //Force at point C in kN
+
+//Calculation
+//Part 1
+//Applying summation of forces in the x and y direction and equating to zero
+P_AB=(-Ay)*(x*y**-1) //Force in member AB in kN
+P_AC=-(p*x**-1*P_AB) //Force in member AC in kN
+//Using stress=force/area
+S_AC=(P_AC/A)*10**3 //Stress in member AC in MPa (T)
+
+//Part 2
+//Sum of moments about point E to zero
+P_BD=(Ay*p*2-(P_C*p))*y**-1 //Force in memeber AB in kN (C)
+S_BD=(P_BD/A)*10**3 //Stress in member in MPa (C)
+
+//Result
+printf("\n The Stress in member AC is %0.1f MPa (T)",S_AC)
+printf("\n The Stress in member BD is %0.1f MPa (C)",S_BD)