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 /764/CH7/EX7.1.b | |
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 '764/CH7/EX7.1.b')
-rwxr-xr-x | 764/CH7/EX7.1.b/result7_1.txt | 28 | ||||
-rwxr-xr-x | 764/CH7/EX7.1.b/solution7_1.sce | 29 |
2 files changed, 57 insertions, 0 deletions
diff --git a/764/CH7/EX7.1.b/result7_1.txt b/764/CH7/EX7.1.b/result7_1.txt new file mode 100755 index 000000000..196e3188c --- /dev/null +++ b/764/CH7/EX7.1.b/result7_1.txt @@ -0,0 +1,28 @@ +-->//(Threaded Joints) Example 7.1
+
+-->//Refer Fig.7.13 on page 232
+
+-->//Weight of electric motor P (kN)
+
+-->P = 10
+ P =
+
+ 10.
+
+-->//Yield tensile strength of 30C8 Syt (N/mm2)
+
+-->Syt = 400
+ Syt =
+
+ 400.
+
+-->//Factor of safety fs
+
+-->fs = 6
+ fs =
+
+ 6.
+
+
+Standard size of the bolt is M20
+
\ No newline at end of file diff --git a/764/CH7/EX7.1.b/solution7_1.sce b/764/CH7/EX7.1.b/solution7_1.sce new file mode 100755 index 000000000..aedd4a6b7 --- /dev/null +++ b/764/CH7/EX7.1.b/solution7_1.sce @@ -0,0 +1,29 @@ +
+//Function to standardise the given bolt-size
+function[v] = standard(w)
+ v = ceil(w)
+ rem = pmodulo(v,10)
+ if (rem ~= 0) then
+ v = v + (10 - rem)
+ end
+endfunction
+
+//Obtain path of solution file
+path = get_absolute_file_path('solution7_1.sce')
+//Obtain path of data file
+datapath = path + filesep() + 'data7_1.sci'
+//Clear all
+clc
+//Execute the data file
+exec(datapath)
+//Calculate permissible tensile stress sigmat (N/mm2)
+sigmat = Syt/fs
+//Calculate the core diameter of the eye-bolt dc (mm)
+dc = ((4 * P * 1000)/(%pi * sigmat))^(1/2)
+//use equation 7.4
+//Calculate the nominal diameter d (mm)
+d = dc/0.8
+//Standardise the bolt size from Table 7.1
+d = standard(d)
+//Print results
+printf('\nStandard size of the bolt is M%d\n',d)
|