blob: 260e44e3e389f927c17b8bc519ebd0999ecf1df7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//Variable declaration
L=5; //length(m)
R=0.06; //resistance(ohm)
I=15; //current(A)
ne=3; //number of electrons
rho=2.7*10**-8; //resistivity(ohm m)
w=26.98; //atomic weight
D=2.7*10**3; //density(kg/m**3)
Na=6.025*10**26; //avagadro number(per k mol)
e=1.6*10**-19;
//Calculation
n=ne*Na*D/w; //number of conduction electrons(per m**3)
mew=1/(n*e*rho); //mobility of electrons(m**2/Vs)
vd=I*R/(L*rho*n*e); //drift velocity(m/s)
//Result
printf('number of conduction electrons is %0.3f *10**29 per m**3 \n',(n/10**29))
printf('mobility of electrons is %0.3f m**2/Vs \n',(mew))
printf('drift velocity is %0.3f *10**-4 m/s\n',(vd*10**4))
|