summaryrefslogtreecommitdiff
path: root/3768/CH3
diff options
context:
space:
mode:
Diffstat (limited to '3768/CH3')
-rw-r--r--3768/CH3/EX3.1/Ex3_1.sce15
-rw-r--r--3768/CH3/EX3.10/Ex3_10.sce19
-rw-r--r--3768/CH3/EX3.11/Ex3_11.sce17
-rw-r--r--3768/CH3/EX3.12/Ex3_12.sce17
-rw-r--r--3768/CH3/EX3.13/Ex3_13.sce15
-rw-r--r--3768/CH3/EX3.14/Ex3_14.sce17
-rw-r--r--3768/CH3/EX3.15/Ex3_15.sce16
-rw-r--r--3768/CH3/EX3.16/Ex3_16.sce13
-rw-r--r--3768/CH3/EX3.5/Ex3_5.sce15
-rw-r--r--3768/CH3/EX3.7/Ex3_7.sce18
-rw-r--r--3768/CH3/EX3.8/Ex3_8.sce17
-rw-r--r--3768/CH3/EX3.9/Ex3_9.sce19
12 files changed, 198 insertions, 0 deletions
diff --git a/3768/CH3/EX3.1/Ex3_1.sce b/3768/CH3/EX3.1/Ex3_1.sce
new file mode 100644
index 000000000..662f92407
--- /dev/null
+++ b/3768/CH3/EX3.1/Ex3_1.sce
@@ -0,0 +1,15 @@
+//Example number 3.1, Page number 45
+
+clc;clear;
+close;
+
+//Variable declaration
+a=1;
+b=1/2;
+c=3; //intercepts
+//Calculation
+h=int(c/a);
+k=int(c/b);
+l=int(c/c); //smiller indices
+//Result
+printf("miller indices are (%d,%d,%d)",h,k,l)
diff --git a/3768/CH3/EX3.10/Ex3_10.sce b/3768/CH3/EX3.10/Ex3_10.sce
new file mode 100644
index 000000000..4b3c2c2ef
--- /dev/null
+++ b/3768/CH3/EX3.10/Ex3_10.sce
@@ -0,0 +1,19 @@
+//Example number 3.10, Page number 49
+clc;clear;
+close;
+
+//Variable declaration
+r=0.1278*10**-9; //atomic radius(m)
+h1=1;
+k1=1;
+l1=1;
+h2=3;
+k2=2;
+l2=1;
+//Calculation
+a=2*sqrt(2)*r;
+d111=a*10**10/sqrt(h1**2+k1**2+l1**2); //interplanar spacing for (111)
+d321=a*10**10/sqrt(h2**2+k2**2+l2**2); //interplanar spacing for (321)
+//Result
+printf("interplanar spacing for (111) is %.3f Angstrom",d111)
+printf("\n interplanar spacing for (321) is %.3f Angstrom",d321)
diff --git a/3768/CH3/EX3.11/Ex3_11.sce b/3768/CH3/EX3.11/Ex3_11.sce
new file mode 100644
index 000000000..09ec5d723
--- /dev/null
+++ b/3768/CH3/EX3.11/Ex3_11.sce
@@ -0,0 +1,17 @@
+//Example number 3.11, Page number 50
+
+clc;clear;
+close;
+
+//Variable declaration
+r1=1.258*10**-10; //radius(m)
+r2=1.292*10**-10; //radius(m)
+//Calculation
+a_bcc=4*r1/sqrt(3);
+v=a_bcc**3;
+V1=v/2;
+a_fcc=2*sqrt(2)*r2;
+V2=a_fcc**3/4;
+V=(V1-V2)*100/V1; //percent volume change is",V,"%"
+//Result
+printf("percent volume change is %.1f %%",V)
diff --git a/3768/CH3/EX3.12/Ex3_12.sce b/3768/CH3/EX3.12/Ex3_12.sce
new file mode 100644
index 000000000..c3d2af8c9
--- /dev/null
+++ b/3768/CH3/EX3.12/Ex3_12.sce
@@ -0,0 +1,17 @@
+//Example number 3.12, Page number 50
+clc;clear;
+close;
+
+//Variable declaration
+C=0.494*10**-9; //height(m)
+a=0.27*10**-9; //distance(m)
+M=65.37; //atomic weight
+N=6.02*10**26; //avagadro number
+//Calculation
+V=3*sqrt(3)*a**2*C/2; //volume of cell(m**3)
+m=6*M/N;
+rho=m/V; //density of Zn(kg/m**3)
+//Result
+printf("volume of cell is %.3e m**3",V)
+printf("\n density of Zn is %.1f kg/m**3",rho)
+//answer in the book is wrong
diff --git a/3768/CH3/EX3.13/Ex3_13.sce b/3768/CH3/EX3.13/Ex3_13.sce
new file mode 100644
index 000000000..61af974f7
--- /dev/null
+++ b/3768/CH3/EX3.13/Ex3_13.sce
@@ -0,0 +1,15 @@
+//Example number 3.13, Page number 51
+
+clc;clear;
+close;
+
+//Variable declaration
+T1=773; //temperature(K)
+T2=1273; //temperature(K)
+n=1*10**-10; //fraction of vacancy sites
+//Calculation
+logx=T1*log(n)/T2
+x=%e**(logx); //fraction of vacancy sites
+//Result
+printf("fraction of vacancy sites is %.3e",x)
+//answer in the book varies due to rounding off errors
diff --git a/3768/CH3/EX3.14/Ex3_14.sce b/3768/CH3/EX3.14/Ex3_14.sce
new file mode 100644
index 000000000..171d2ad39
--- /dev/null
+++ b/3768/CH3/EX3.14/Ex3_14.sce
@@ -0,0 +1,17 @@
+//Example number 3.14, Page number 51
+
+clc;clear;
+close;
+
+//Variable declaration
+Ev=68*10**3; //enthalpy(j/mol)
+R=8.314;
+T1=300; //temperature(K)
+T2=800; //temperature(K)
+//Calculation
+x1=-Ev/(R*T1);
+x2=-Ev/(R*T2);
+n=%e**(x1)/%e**(x2); //ratio of number of vacancies
+//Result
+printf("ratio of number of vacancies is %.2e",n)
+//answer in the book varies due to rounding off errors
diff --git a/3768/CH3/EX3.15/Ex3_15.sce b/3768/CH3/EX3.15/Ex3_15.sce
new file mode 100644
index 000000000..fb2beaf8d
--- /dev/null
+++ b/3768/CH3/EX3.15/Ex3_15.sce
@@ -0,0 +1,16 @@
+//Example number 3.15, Page number 52
+
+clc;clear;
+close;
+
+//Variable declaration
+KbT=0.025;
+nbyN=1/10**10; //concentration
+N=10**29;
+//Calculation
+x=2*KbT;
+Ev=x*log(1/nbyN); //value of concentration(eV)
+n=1/((N*nbyN)**(1/3)); //average seperation(m)
+//Result
+printf("value of concentration is %.1f eV",Ev)
+printf("\n average seperation is %.2e m",n)
diff --git a/3768/CH3/EX3.16/Ex3_16.sce b/3768/CH3/EX3.16/Ex3_16.sce
new file mode 100644
index 000000000..6266d7041
--- /dev/null
+++ b/3768/CH3/EX3.16/Ex3_16.sce
@@ -0,0 +1,13 @@
+//Example number 3.16, Page number 52
+
+clc;clear;
+close;
+
+//Variable declaration
+N=2.303*16.65;
+T=298; //temperature(K)
+Kb=8.625*10**-5;
+//Calculation
+E=2*N*Kb*T; //energy required(eV)
+//Result
+printf("energy required is %.2f eV",E)
diff --git a/3768/CH3/EX3.5/Ex3_5.sce b/3768/CH3/EX3.5/Ex3_5.sce
new file mode 100644
index 000000000..8fdb4e5ce
--- /dev/null
+++ b/3768/CH3/EX3.5/Ex3_5.sce
@@ -0,0 +1,15 @@
+//Example number 3.5, Page number 48
+
+clc;clear;
+close;
+
+//Variable declaration
+a=1;
+b=2;
+c=3; //intercepts
+//Calculation
+h=int(c/a);
+k=int(b);
+l=int(c*b); //miller indices
+//Result
+printf("miller indices are (%d,%d,%d)",h,k,l)
diff --git a/3768/CH3/EX3.7/Ex3_7.sce b/3768/CH3/EX3.7/Ex3_7.sce
new file mode 100644
index 000000000..ee6c81404
--- /dev/null
+++ b/3768/CH3/EX3.7/Ex3_7.sce
@@ -0,0 +1,18 @@
+//Example number 3.7, Page number 48
+
+clc;clear;
+close;
+
+//Variable declaration
+a=poly([0],'a')
+b=poly([0],'b')
+X=3;
+Y=4;
+Z=0; //intercepts
+//Calculation
+x=a/X;
+y=b/Y;
+z=%inf ; //miller indices
+//Result
+printf("miller indices are : \n")
+disp (z,y,x)
diff --git a/3768/CH3/EX3.8/Ex3_8.sce b/3768/CH3/EX3.8/Ex3_8.sce
new file mode 100644
index 000000000..90d1a4f9d
--- /dev/null
+++ b/3768/CH3/EX3.8/Ex3_8.sce
@@ -0,0 +1,17 @@
+//Example number 3.8, Page number 49
+
+clc;clear;
+close;
+
+//Variable declaration
+a=0.25;
+b=0.25;
+c=0.18;
+h=1;
+k=1;
+l=1;
+//Calculation
+d_hkl=1/sqrt((a**2/h**2)+(b**2/k**2)+(c**2/l**2)); //spacing between planes(nm)
+//Result
+printf("spacing between planes is %.3f mm",d_hkl)
+//answer in the book is wrong
diff --git a/3768/CH3/EX3.9/Ex3_9.sce b/3768/CH3/EX3.9/Ex3_9.sce
new file mode 100644
index 000000000..3d3408c8c
--- /dev/null
+++ b/3768/CH3/EX3.9/Ex3_9.sce
@@ -0,0 +1,19 @@
+//Example number 3.9, Page number 49
+clc;clear;
+close;
+
+//Variable declaration
+h1=1;
+k1=0;
+l1=0; //miller indices of (100)
+h2=1;
+k2=1;
+l2=0; //miller indices of (110)
+a=0.287; //lattice constant(nm)
+//Calculation
+d100=a/sqrt(h1**2+k1**2+l1**2); //spacing(nm)
+d110=a/sqrt(h2**2+k2**2+l2**2); //spacing(nm)
+rho=2/(sqrt(2)*(d100*10**-9)**2); //number of atoms(per mm**2)
+//Result
+printf("number of atoms is %.3E atoms/mm^2",rho)
+//answer in the book is wrong