diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1898/CH2 | |
download | Scilab-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/CH2')
-rwxr-xr-x | 1898/CH2/EX2.1/Ex2_1.sce | 30 | ||||
-rwxr-xr-x | 1898/CH2/EX2.2/Ex2_2.sce | 21 | ||||
-rwxr-xr-x | 1898/CH2/EX2.3/Ex2_3.sce | 32 | ||||
-rwxr-xr-x | 1898/CH2/EX2.4/Ex2_4.sce | 36 |
4 files changed, 119 insertions, 0 deletions
diff --git a/1898/CH2/EX2.1/Ex2_1.sce b/1898/CH2/EX2.1/Ex2_1.sce new file mode 100755 index 000000000..b59ad715a --- /dev/null +++ b/1898/CH2/EX2.1/Ex2_1.sce @@ -0,0 +1,30 @@ +clear all; clc;
+
+disp("Scilab Code Ex 2.1 : ")
+
+//Given:
+e_z= 4;
+ab = 0.200; //m
+
+
+//Calculations:
+
+//Part a)
+
+z=integrate('1+(40*10^-3)*(sqrt(z))','z',0,ab); //Strain formula for short line segment = delta(sdash) =(1+e_z)delta(s)
+deltaB= z-ab;
+deltaB_mm= deltaB*1000;
+
+//Part b)
+
+e_avg = deltaB/ab;// Normal strain formula : e = (delta(sdash) -delta(s))/delta(s)
+
+//Display:
+
+
+printf("\n\nThe value of integration is =%10.5f m",z);
+printf("\nThe displacement at the end of the rod is = %0.2f mm",deltaB_mm);
+printf("\nThe average normal strain in the rod is =%10.4f mm/mm",e_avg);
+
+//-------------------------------------------------------------------------END----------------------------------------------------------------------------------
+
diff --git a/1898/CH2/EX2.2/Ex2_2.sce b/1898/CH2/EX2.2/Ex2_2.sce new file mode 100755 index 000000000..8f000c9f1 --- /dev/null +++ b/1898/CH2/EX2.2/Ex2_2.sce @@ -0,0 +1,21 @@ +clear all; clc;
+
+disp("Scilab Code Ex 2.2 : ")
+
+//Given:
+theta = 0.002; //radians
+bc=1; //m
+ba = 0.5;//m
+
+//Calculations:
+
+bb_dash = theta*ba;
+avg_normal_strain = bb_dash/bc;//m/m
+
+//Display:
+
+
+printf("\n\nThe average normal strain =%10.3f m/m",avg_normal_strain);
+
+//---------------------------------------END---------------------------------------------------------------------------------------------
+
diff --git a/1898/CH2/EX2.3/Ex2_3.sce b/1898/CH2/EX2.3/Ex2_3.sce new file mode 100755 index 000000000..5b17994c3 --- /dev/null +++ b/1898/CH2/EX2.3/Ex2_3.sce @@ -0,0 +1,32 @@ +clear all; clc;
+
+disp("Scilab Code Ex 2.3 : ")
+
+//Given:
+
+ab= 250; //mm
+bbdash_x = 3; //mm
+bbdash_y = 2; //mm
+ac = 300; //mm
+
+//calculations:
+
+//Part(a)
+abdash = sqrt((ab - bbdash_y)^2 + (bbdash_x)^2); //Pythagoras theorem
+avg_normal_strain = (abdash-ab)/ab;
+
+//Part(b)
+gamma_xy = atan(bbdash_x/(ab - bbdash_y)); //shear strain formula
+
+//Display:
+
+printf("\n\nThe average normal strain along AB is =%10.5f mm/mm",avg_normal_strain);
+printf("\nThe average shear strain = %10.5f rad",gamma_xy);
+
+//--------------------------------------------------------------------END-----------------------------------------------
+
+
+
+
+
+
diff --git a/1898/CH2/EX2.4/Ex2_4.sce b/1898/CH2/EX2.4/Ex2_4.sce new file mode 100755 index 000000000..d7c0f27f7 --- /dev/null +++ b/1898/CH2/EX2.4/Ex2_4.sce @@ -0,0 +1,36 @@ +clear all; clc;
+
+disp("Scilab Code Ex 2.4 : ")
+
+//Given:
+ab = 150; //mm
+bc = 150; //mm
+disp_cd= 2; //mm
+ab_half = ab/2;
+addash_half = (bc+disp_cd)/2 ;
+
+//Calculations:
+
+//Part(a)
+
+ac = sqrt((ab)^2 + (bc)^2); //Pythagoras theorem in mm
+ac_m = ac/1000; //in m
+acdash = sqrt((ab)^2 + (bc+disp_cd)^2); //Pythagoras theorem in mm
+acdash_m = acdash/1000; //in m
+
+avg_strain_ac = (acdash_m - ac_m)/ac_m; //Normal strain formula
+
+//Part(b)
+
+theta_dash = 2* atan((addash_half)/(bc/2)); //theta found in radians
+gamma_xy = (%pi / 2)- theta_dash; //shear strain formula
+
+//Display:
+
+
+printf("\n\nThe average normal strain along the diagonal AC is =%10.5f mm/mm",avg_strain_ac);
+printf("\nThe shear strain at E relative to the x,y axes = %10.5f rad",gamma_xy);
+
+//----------------------------------------------------------------END---------------------------------------------------------------------------------------------
+
+
|