summaryrefslogtreecommitdiff
path: root/3257/CH2/EX2.5/Ex2_5.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3257/CH2/EX2.5/Ex2_5.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 '3257/CH2/EX2.5/Ex2_5.sce')
-rwxr-xr-x3257/CH2/EX2.5/Ex2_5.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3257/CH2/EX2.5/Ex2_5.sce b/3257/CH2/EX2.5/Ex2_5.sce
new file mode 100755
index 000000000..91dfe23c0
--- /dev/null
+++ b/3257/CH2/EX2.5/Ex2_5.sce
@@ -0,0 +1,16 @@
+// Yielding of a thin walled shell
+clc
+r = 254 // radius in mm
+t = 2.54 // thickness in mm
+sigma_1 = 140 // stress in MPa
+sigma_2 = 140 // stress in MPa
+sigma_min = 0 // stress in MPa
+printf("\ Example 2.5")
+Y = sigma_2 - sigma_min
+p = 2*(t/1e3)*Y/(r*1e-3)
+printf("\n\n According to maximum shear stress criterion, Required pressure is %.1f MPa",p)
+Y = sqrt(0.5*(sigma_1^2+sigma_2^2))
+p = 2*(t/1e3)*Y/(r*1e-3)
+printf("\n\n According to maximum distortion energy criterion, Required pressure is %.1f MPa",p)
+
+