blob: 3ad6c9e4b1af7869909df1b840cfdc3d08ac7af6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
clear
//
//
//
//Variable declaration
D=8.92*10**3 //density(kg/m**3)
w=63.5 //atomic weight
Na=6.02*10**26 //avagadro number
e=1.6*10**-19 //charge(c)
I=100 //current(A)
A=10*10**-6 //area(m**2)
n=1
//Calculation
J=I/A //current density(amp/m**2)
n=n*Na*D/w
vd=J/(n*e) //drift velocity(m/s)
//Result
|