~ubuntu-branches/ubuntu/karmic/octave-secs1d/karmic

« back to all changes in this revision

Viewing changes to inst/DDG/DDGp2phip.m

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2009-05-24 19:06:32 UTC
  • Revision ID: james.westby@ubuntu.com-20090524190632-aukf4u7bkxqtn4t1
Tags: upstream-0.0.8
ImportĀ upstreamĀ versionĀ 0.0.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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) $