summaryrefslogtreecommitdiff
path: root/Mechanical_Metallurgy/Chapter_20.ipynb
blob: 90519f65232283b7fd9de756f6d10fe4d85928aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Chapter 20: Sheet-Metal Forming"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Example 20.1, Deep Drawing, Page No. 672"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Limiting ratio = 1.98104\n"
     ]
    }
   ],
   "source": [
    "from math import log\n",
    "\n",
    "#variable declaration\n",
    "le=0.3;\n",
    "wd=-0.16;\n",
    "\n",
    "#calcualtion\n",
    "l_l0=1+le;\n",
    "w_w0=1+wd;\n",
    "R=log(1/w_w0)/log((w_w0)*l_l0);\n",
    "\n",
    "#result\n",
    "print('\\nLimiting ratio = %g')%(R);"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Example 20.2, Forming Limit Criteria, Page No. 675"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "Major Strain = 80 percent \n",
      "Minor Strain = -20 percent\n"
     ]
    }
   ],
   "source": [
    "#variable declaration\n",
    "d=0.1;\n",
    "mj_d=0.18;\n",
    "mn_d=0.08;\n",
    "\n",
    "#calculation\n",
    "e1=(mj_d-d)/d;\n",
    "e2=(mn_d-d)/d;\n",
    "\n",
    "#result\n",
    "print('\\nMajor Strain = %g percent \\nMinor Strain = %g percent')%(e1*100,e2*100);"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}