summaryrefslogtreecommitdiff
path: root/3864/CH7/EX7.12
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3864/CH7/EX7.12
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-master.tar.gz
Scilab-TBC-Uploads-master.tar.bz2
Scilab-TBC-Uploads-master.zip
Added new codeHEADmaster
Diffstat (limited to '3864/CH7/EX7.12')
-rw-r--r--3864/CH7/EX7.12/Ex7_12.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/3864/CH7/EX7.12/Ex7_12.sce b/3864/CH7/EX7.12/Ex7_12.sce
new file mode 100644
index 000000000..40bfce331
--- /dev/null
+++ b/3864/CH7/EX7.12/Ex7_12.sce
@@ -0,0 +1,30 @@
+clear
+//
+//
+
+//Initilization of Variables
+
+//Direct stresses
+p_x=120 //N/mm**2 //Tensile stress
+p_y=-100 //N/mm**2 //Compressive stress
+p1=160 //N/mm**2 //Major principal stress
+
+//Calculations
+
+//Let q be the shearing stress
+
+//p1=(p_x+p_y)*2**-1+((((p_x+p_y)*2**-1)**2)+q**2)**0.5
+//After further simplifying we get
+q=(p1-((p_x+p_y)*2**-1))**2-((p_x-p_y)*2**-1)**2 //N/mm**2
+q2=(q)**0.5 //N/mm**2
+
+//Minimum Principal stress
+p2=(p_x+p_y)*2**-1-(((p_x-p_y)*2**-1)**2+q2**2)**0.5 //N/mm**2
+
+//Max shearing stress
+q_max=(((p_x-p_y)*2**-1)**2+q2**2)**0.5 //N/mm**2
+
+//Result
+printf("\n Shearing stress of material %0.2f N/mm**2",q)
+printf("\n Min Principal stress %0.2f N/mm**2",p2)
+printf("\n Max shearing stress %0.2f N/mm**2",q_max)