summaryrefslogtreecommitdiff
path: root/1898/CH4/EX4.2/Ex4_2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1898/CH4/EX4.2/Ex4_2.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1898/CH4/EX4.2/Ex4_2.sce')
-rwxr-xr-x1898/CH4/EX4.2/Ex4_2.sce40
1 files changed, 40 insertions, 0 deletions
diff --git a/1898/CH4/EX4.2/Ex4_2.sce b/1898/CH4/EX4.2/Ex4_2.sce
new file mode 100755
index 000000000..6e18e8099
--- /dev/null
+++ b/1898/CH4/EX4.2/Ex4_2.sce
@@ -0,0 +1,40 @@
+clear all; clc;
+
+disp("Scilab Code Ex 4.2 : ")
+
+//Given:
+a_ab = 400; //mm^2
+d_rod = 10; //mm
+r_rod = d_rod/(2*1000); //radius in m
+P = 80; //kN
+E_st = 200*(10^9); //Pa
+E_al = 70*(10^9); //Pa
+l_ab = 400; //mm
+l_bc = 600; //mm
+
+//Calculations:
+
+//Internal forces: tension = compression = 80kN.
+
+//Displacement:
+
+//delta =PL/AE
+numerator1 = P*(10^3)*(l_bc/1000);
+denominator1 = (%pi*r_rod^2*E_st);
+delta_cb = numerator1/denominator1; //to the right
+
+numerator2 = -P*(10^3)*(l_ab/1000);
+denominator2 = (a_ab* 10^-6 *E_al);
+delta_a = -numerator2/denominator2; //to the right
+
+delta_c = delta_a+delta_cb;
+
+//Display:
+
+
+
+printf("\n\nThe displacement of C with respect to B = +%1.6f m',delta_cb);
+printf("\nThe displacement of B with respect to A = +%1.6f m",delta_a);
+printf('\nThe displacement of C relative to A = +%1.5f m',delta_c);
+
+//------------------------------------------------------------------END---------------------------------------------------------------------