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