diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /698/CH2/EX2.6/P6_max_tensile_and_shear_stress.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '698/CH2/EX2.6/P6_max_tensile_and_shear_stress.sce')
-rw-r--r-- | 698/CH2/EX2.6/P6_max_tensile_and_shear_stress.sce | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/698/CH2/EX2.6/P6_max_tensile_and_shear_stress.sce b/698/CH2/EX2.6/P6_max_tensile_and_shear_stress.sce new file mode 100644 index 000000000..f70d738cd --- /dev/null +++ b/698/CH2/EX2.6/P6_max_tensile_and_shear_stress.sce @@ -0,0 +1,52 @@ +clc
+//Example 2.6
+//Maximum tensile and shear stress
+//------------------------------------------------------------------------------
+
+//Given Data:
+//Dimensions
+d=0.05//m
+//Area
+A=(%pi/4)*(d^2)
+//Load
+P=9000//N
+//Torsional Moment
+T=100//Nm
+//Eccentricity[distance by which line of action of load is offset from axis of shaft]
+e=0.028//m
+
+//------------------------------------------------------------------------------
+//Moment of area
+I=(%pi/64)*(d^4)
+//Polar moment
+J=(%pi/32)*(d^4)
+
+//Bending moment
+Mc=P*e*(d/2)
+
+//The critical stress is at the section at which beam is fixed
+Sx=(P/A)+(Mc/I)
+//Shaft is not loaded along X-direction
+Sy=0
+
+//Shear stress
+Txy=(T*(d/2))/J
+//Maximum tensile stress
+Sn_max=(Sx/2)+sqrt(((Sx/2)^2)+(Txy^2))
+//Maximum shear stress
+T_max=sqrt(((Sx/2)^2)+(Txy^2))
+
+//------------------------------------------------------------------------------
+//Printing result file to .txt
+res6=mopen(TMPDIR+'6_max_tensile_and_shear_stress.txt','wt')
+mfprintf(res6,"The critical stress is at the section at which beam is fixed\n")
+mfprintf(res6,"\tSy=0\n")
+mfprintf(res6,"\n\tSx=(P/A)+(Mc/I).....Tensile stress\n")
+mfprintf(res6,"\n\tTxy=(T*(d/2))/J.....Shear stress\n\n")
+mfprintf(res6,"The maximum tensile stress is %0.1f MN/m^2",(Sn_max*(10^-6)))
+nature(Sn_max)
+mfprintf(res6,"\nThe maximum shear stress is %0.1f MN/m^2 (shear)",(T_max*(10^-6)))
+mclose(res6)
+editor(TMPDIR+'6_max_tensile_and_shear_stress.txt')
+//------------------------------------------------------------------------------
+//-----------------------------End of program-----------------------------------
|