summaryrefslogtreecommitdiff
path: root/backup/Mechanical_Metallurgy_version_backup/Chapter_4.ipynb
diff options
context:
space:
mode:
authorkinitrupti2017-05-12 18:40:35 +0530
committerkinitrupti2017-05-12 18:40:35 +0530
commitd36fc3b8f88cc3108ffff6151e376b619b9abb01 (patch)
tree9806b0d68a708d2cfc4efc8ae3751423c56b7721 /backup/Mechanical_Metallurgy_version_backup/Chapter_4.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 'backup/Mechanical_Metallurgy_version_backup/Chapter_4.ipynb')
-rwxr-xr-xbackup/Mechanical_Metallurgy_version_backup/Chapter_4.ipynb82
1 files changed, 82 insertions, 0 deletions
diff --git a/backup/Mechanical_Metallurgy_version_backup/Chapter_4.ipynb b/backup/Mechanical_Metallurgy_version_backup/Chapter_4.ipynb
new file mode 100755
index 00000000..4d124b41
--- /dev/null
+++ b/backup/Mechanical_Metallurgy_version_backup/Chapter_4.ipynb
@@ -0,0 +1,82 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 4: Plastic Deformation of Single Crystals"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "### Example 4.1, Critical Resolved Shear Stress for Slip, Page No. 125"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Tensile Stress applied = 14.6969 MPa\n"
+ ]
+ }
+ ],
+ "source": [
+ "from math import sqrt\n",
+ "import numpy as np\n",
+ "\n",
+ "#variable declaration\n",
+ "a=[1,-1,0];\n",
+ "n=[1,-1,-1];\n",
+ "s=[0,-1,-1];\n",
+ "Tr=6;\n",
+ "\n",
+ "#calculation\n",
+ "cos_fi=np.dot(a,n)/(sqrt(a[0]**2+a[1]**2+a[2]**2)*sqrt(n[0]**2+n[1]**2+n[2]**2));\n",
+ "cos_lm=np.dot(a,s)/(sqrt(a[0]**2+a[1]**2+a[2]**2)*sqrt(s[0]**2+s[1]**2+s[2]**2));\n",
+ "sigma=Tr/(cos_fi*cos_lm);\n",
+ "\n",
+ "#result\n",
+ "print('Tensile Stress applied = %g MPa')%(sigma);"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "collapsed": true
+ },
+ "outputs": [],
+ "source": []
+ }
+ ],
+ "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
+}