2021-03-16 07:00:21 +00:00
|
|
|
function carrier_density = carrier_density_from_fermi(fermi, energy_scale) % J, J
|
2021-03-09 10:42:13 +00:00
|
|
|
|
|
|
|
if fermi > 0
|
|
|
|
sf = 1;
|
|
|
|
else
|
|
|
|
sf = -1;
|
|
|
|
end
|
|
|
|
|
|
|
|
hbar = 6.626e-34 / (2*pi); % Js
|
|
|
|
|
2021-03-16 07:00:21 +00:00
|
|
|
carrier_density = fermi^2 ...
|
|
|
|
/ ...
|
|
|
|
(pi * ( hbar * fermi_velocity(energy_scale) )^2);
|
2021-03-09 10:42:13 +00:00
|
|
|
carrier_density = sf * carrier_density;
|
|
|
|
end
|
|
|
|
|