%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                  
% Name: LP_Debye.m                                                                 
% Author: Anders I. Eriksson
%
% Description:                                                                     
%     Computes the debye length.                                                                             
%                                                                                  
% Input:  n  - Electron number density/[1/cm^3]
%         T  - Electron temperature/[eV]                                                                          
%                                                                                  
% Output: Ld - Debye length [m]                                                                           
%                                                                                                                                                                  
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function Ld = LP_Debye(n,T)

global CO

n = n*1e6;

Ld = sqrt(CO.eps0*T/(n*CO.qe));       % Debye length [m]
          % (Note that the square of qe in the denominator is
          %  cancelled by a qe in the numerator as T is in eV)
