1 function p=DDGOXhole_driftdiffusion(mesh,Dsides,nin,pin,V,up,tn,tp,n0,p0)
4 % p=DDGhole_driftdiffusion(mesh,Dsides,nin,pin,V,up,tn,tp,n0,p0)
6 % v = electric potential
7 % mesh = integration domain
8 % nin = initial guess and BCs for electron density
9 % pin = hole density (to compute SRH recombination)
11 % p = updated hole density
14 % This file is part of
16 % SECS2D - A 2-D Drift--Diffusion Semiconductor Device Simulator
17 % -------------------------------------------------------------------
18 % Copyright (C) 2004-2006 Carlo de Falco
22 % SECS2D is free software; you can redistribute it and/or modify
23 % it under the terms of the GNU General Public License as published by
24 % the Free Software Foundation; either version 2 of the License, or
25 % (at your option) any later version.
27 % SECS2D is distributed in the hope that it will be useful,
28 % but WITHOUT ANY WARRANTY; without even the implied warranty of
29 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30 % GNU General Public License for more details.
32 % You should have received a copy of the GNU General Public License
33 % along with SECS2D; If not, see <http://www.gnu.org/licenses/>.
35 if (Ucolumns(nin)>Urows(nin))
39 if (Ucolumns(V)>Urows(V))
43 if (Ucolumns(pin)>Urows(pin))
47 Nnodes = max(size(mesh.p));
48 Nelements = max(size(mesh.t));
50 denom = (tp*(nin+sqrt(n0.*p0))+tn*(pin+sqrt(n0.*p0)));
57 p = Udriftdiffusion(mesh,Dsides,guess,M,U,V,u);