]> Creatis software - CreaPhase.git/blob - octave_packages/secs1d-0.0.8/DDG/DDGphin2n.m
Add a useful package (from Source forge) for octave
[CreaPhase.git] / octave_packages / secs1d-0.0.8 / DDG / DDGphin2n.m
1 function n = DDGphin2n (V,phin);
2
3 % n = DDGphin2n (V,phin);
4 %         computes the electron density using Maxwell-Boltzmann
5 %         statistics.
6
7
8 ## This file is part of 
9 ##
10 ## SECS1D - A 1-D Drift--Diffusion Semiconductor Device Simulator
11 ## -------------------------------------------------------------------
12 ## Copyright (C) 2004-2007  Carlo de Falco
13 ##
14 ##
15 ##
16 ##  SECS1D is free software; you can redistribute it and/or modify
17 ##  it under the terms of the GNU General Public License as published by
18 ##  the Free Software Foundation; either version 2 of the License, or
19 ##  (at your option) any later version.
20 ##
21 ##  SECS1D is distributed in the hope that it will be useful,
22 ##  but WITHOUT ANY WARRANTY; without even the implied warranty of
23 ##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24 ##  GNU General Public License for more details.
25 ##
26 ##  You should have received a copy of the GNU General Public License
27 ##  along with SECS1D; If not, see <http://www.gnu.org/licenses/>.
28   
29   
30   nmin = 0;
31   n =  exp ((V-phin));
32   n = n .* (n>nmin) + nmin * (n<=nmin);
33
34   % Last Revision:
35   % $Author: adb014 $
36   % $Date: 2008-02-04 16:26:27 +0100 (man, 04 feb 2008) $