From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 764/CH7/EX7.2.b/result7_2.txt | 28 ++++++++++++++++++++++++++++ 764/CH7/EX7.2.b/solution7_2.sce | 30 ++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100755 764/CH7/EX7.2.b/result7_2.txt create mode 100755 764/CH7/EX7.2.b/solution7_2.sce (limited to '764/CH7/EX7.2.b') diff --git a/764/CH7/EX7.2.b/result7_2.txt b/764/CH7/EX7.2.b/result7_2.txt new file mode 100755 index 000000000..33171a4ac --- /dev/null +++ b/764/CH7/EX7.2.b/result7_2.txt @@ -0,0 +1,28 @@ +-->//(Threaded Joints) Example 7.2 + +-->//Refer Fig.7.14 on page 232 + +-->//Yield tensile strength of 30C8 Syt (N/mm2) + +-->Syt = 400 + Syt = + + 400. + +-->//Factor of safety fs + +-->fs = 5 + fs = + + 5. + +-->//Shear load acting on the bolts Pt (kN) + +-->Pt = 5 + Pt = + + 5. + + +The standard size of the bolt is M10 + \ No newline at end of file diff --git a/764/CH7/EX7.2.b/solution7_2.sce b/764/CH7/EX7.2.b/solution7_2.sce new file mode 100755 index 000000000..7079dc7c8 --- /dev/null +++ b/764/CH7/EX7.2.b/solution7_2.sce @@ -0,0 +1,30 @@ + +//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_2.sce') +//Obtain path of data file +datapath = path + filesep() + 'data7_2.sci' +//Clear all +clc +//Execute the data file +exec(datapath) +//Calculate the yield shear strength Ssy (N/mm2) +Ssy = (50/100)*Syt +//Calculate the permissible shear stress tau (N/mm2) +tau = Ssy/fs +//Shear load acting on one bolt P (kN) +P = Pt/2 +//Calculate the diameter of the bolt shank d (mm) +d = ((4 * P * 1000)/(%pi * tau))^(1/2) +//Standardise the bolt size from Table 7.1 +d = standard(d) +//Print results +printf('\nThe standard size of the bolt is M%d\n',d) -- cgit