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