diff options
author | hardythe1 | 2015-05-05 14:21:39 +0530 |
---|---|---|
committer | hardythe1 | 2015-05-05 14:21:39 +0530 |
commit | 435840cef00c596d9e608f9eb2d96f522ea8505a (patch) | |
tree | 4c783890c984c67022977ca98432e5e4bab30678 /Mechanical_Metallurgy/Chapter_1.ipynb | |
parent | aa1863f344766ca7f7c20a395e58d0fb23c52130 (diff) | |
download | Python-Textbook-Companions-435840cef00c596d9e608f9eb2d96f522ea8505a.tar.gz Python-Textbook-Companions-435840cef00c596d9e608f9eb2d96f522ea8505a.tar.bz2 Python-Textbook-Companions-435840cef00c596d9e608f9eb2d96f522ea8505a.zip |
add books
Diffstat (limited to 'Mechanical_Metallurgy/Chapter_1.ipynb')
-rwxr-xr-x | Mechanical_Metallurgy/Chapter_1.ipynb | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/Mechanical_Metallurgy/Chapter_1.ipynb b/Mechanical_Metallurgy/Chapter_1.ipynb new file mode 100755 index 00000000..7660f24c --- /dev/null +++ b/Mechanical_Metallurgy/Chapter_1.ipynb @@ -0,0 +1,73 @@ +{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 1: Introduction"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "### Example 1.1, Shear Stress, Page No. 16"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Shear Stress Required to nucleate a grain boundary crack in high temperature deformation = 158.887 MPa\n"
+ ]
+ }
+ ],
+ "source": [
+ "#variable declaration\n",
+ "from math import pi\n",
+ "from math import sqrt\n",
+ "y_b=2;\n",
+ "G=75;\n",
+ "G=G*10**9; #conversion to Pa\n",
+ "L=0.01;\n",
+ "L=L*10**-3; #conversion to m\n",
+ "nu=0.3;\n",
+ "\n",
+ "#calculation\n",
+ "T=sqrt((3*pi*y_b*G)/(8*(1-nu)*L));\n",
+ "T=T/10**6;\n",
+ "\n",
+ "#result\n",
+ "print ('Shear Stress Required to nucleate a grain boundary crack in high temperature deformation = %g MPa') %(T)"
+ ]
+ }
+ ],
+ "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
+}
|