summaryrefslogtreecommitdiff
path: root/Material_Science/material_science_ch_4.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'Material_Science/material_science_ch_4.ipynb')
-rwxr-xr-xMaterial_Science/material_science_ch_4.ipynb61
1 files changed, 61 insertions, 0 deletions
diff --git a/Material_Science/material_science_ch_4.ipynb b/Material_Science/material_science_ch_4.ipynb
new file mode 100755
index 00000000..779ecefd
--- /dev/null
+++ b/Material_Science/material_science_ch_4.ipynb
@@ -0,0 +1,61 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 4: Cohesion between atoms"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.1, page no-92"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "# Coulomb interatomic energy\n",
+ "\n",
+ "import math\n",
+ "#Variable declaration\n",
+ "R=2.81*10**-10 # distance between oppositely charged ion\n",
+ "e=1.6*10**-19 # Charge of an electron\n",
+ "eps=8.854*10**-12 # epsilon\n",
+ "\n",
+ "#calculation\n",
+ "U=-(e**2)/(4*math.pi*eps*R)\n",
+ "\n",
+ "#Result\n",
+ "print('The Coulomb interatomic energy is %.2f eV'%(U*10**19/1.6))"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The Coulomb interatomic energy is -5.12 eV\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file