1 function n = DDGphin2n (V,phin);
3 % n = DDGphin2n (V,phin);
4 % computes the electron density using Maxwell-Boltzmann
8 ## This file is part of
10 ## SECS1D - A 1-D Drift--Diffusion Semiconductor Device Simulator
11 ## -------------------------------------------------------------------
12 ## Copyright (C) 2004-2007 Carlo de Falco
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.
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.
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/>.
32 n = n .* (n>nmin) + nmin * (n<=nmin);
36 % $Date: 2008-02-04 16:26:27 +0100 (man, 04 feb 2008) $