summaryrefslogtreecommitdiff
path: root/Mechanical_Metallurgy/Chapter_14.ipynb
diff options
context:
space:
mode:
authorkinitrupti2017-05-12 18:40:35 +0530
committerkinitrupti2017-05-12 18:40:35 +0530
commitd36fc3b8f88cc3108ffff6151e376b619b9abb01 (patch)
tree9806b0d68a708d2cfc4efc8ae3751423c56b7721 /Mechanical_Metallurgy/Chapter_14.ipynb
parent1b1bb67e9ea912be5c8591523c8b328766e3680f (diff)
downloadPython-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.tar.gz
Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.tar.bz2
Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.zip
Revised list of TBCs
Diffstat (limited to 'Mechanical_Metallurgy/Chapter_14.ipynb')
-rwxr-xr-xMechanical_Metallurgy/Chapter_14.ipynb90
1 files changed, 0 insertions, 90 deletions
diff --git a/Mechanical_Metallurgy/Chapter_14.ipynb b/Mechanical_Metallurgy/Chapter_14.ipynb
deleted file mode 100755
index bd230ae6..00000000
--- a/Mechanical_Metallurgy/Chapter_14.ipynb
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "cells": [
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "# Chapter 14: Brittle Fracture and Impact Testing"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "### Example 14.1, Stress Corrosion Cracking, Page No. 494"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 1,
- "metadata": {
- "collapsed": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "\n",
- "Estimated Life = 11.5741 days\n",
- "\n",
- "\n",
- "\n",
- "---------------------------------\n",
- "Stress, MPa\tCrack Length, mm\n",
- "---------------------------------\n",
- "\n",
- "\t500\t\t0.105226\n",
- "\n",
- "\t300\t\t0.292296\n",
- "\n",
- "\t100\t\t2.63066\n",
- "\n",
- "---------------------------------\n"
- ]
- }
- ],
- "source": [
- "from math import pi\n",
- "\n",
- "#variable declaration\n",
- "cg=0.01;\n",
- "gr=10**-8;\n",
- "\n",
- "#calculation\n",
- "l=cg/(gr*3600*24);\n",
- "K_l_SCC=10;\n",
- "a_sigma2=K_l_SCC**2/(1.21*pi);\n",
- "s=[500,300,100];\n",
- "\n",
- "#result\n",
- "print('\\nEstimated Life = %g days')%(l);\n",
- "print('\\n\\n\\n---------------------------------\\nStress, MPa\\tCrack Length, mm\\n---------------------------------\\n');\n",
- "for i in range (0,3):\n",
- " print('\\t%g\\t\\t%g\\n')%(s[i],a_sigma2*1000/s[i]**2);\n",
- "print('---------------------------------');"
- ]
- }
- ],
- "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
-}