summaryrefslogtreecommitdiff
path: root/3020/CH17/EX17.1/ex17_1.sce
blob: 93b4b48682d7944c60f8b6d86911884700a0c089 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
clc;
clear all;
pCu=8.96e3;//density of copper in kg*m^-3
pZn=7.14e3;//density of Zn in kg*m^-3
pAl=2.70e3;//density of Al in kg*m^-3
MCu=63.55;//atomic weight of Cu
MZn=65.38;//atomic weight of Zn
MAl=27.0;//atomic weight of Al
N=6.022*1e26;//avogadro's constant
x=1;//no of free electrons per atom
h=6.626e-34;
me=9.1e-31;

//for Cu
n=pCu*N*x/MCu;//concentration of electron in Cu
Efo=(h*h/(8*me))*((3*n/%pi)^(2/3));//fermi energy at 0K
Efo1=Efo/(1.6e-19);//convertion into eV from J
disp('eV',Efo1,'fermi energy at 0 K');

//for Zn
x=2;
n=pZn*N*x/MZn;//concentration of electron in Zn
Efo=(h*h/(8*me))*((3*n/%pi)^(2/3));//fermi energy at 0K
Efo1=Efo/(1.6e-19);//convertion into eV from J
disp('eV',Efo1,'fermi energy at 0 K');

//for Al
x=3;
n=pAl*N*x/MAl;//concentration of electron in Al
Efo=(h*h/(8*me))*((3*n/%pi)^(2/3));//fermi energy at 0K
Efo1=Efo/(1.6e-19);//convertion into eV from J
disp('eV',Efo1,'fermi energy at 0 K');