1 function Tp = ThDDGOXupdatehole_temp(imesh,Dnodes,Tp,n,p,Tl,Jp,E,mobp0,...
4 %% Tp = ThDDGOXupdatehole_temp(mesh,Dnodes,Tp,n,p,Tl,Jp,E,mobp0,...
5 %% twp0,twp1,tn,tp,n0,p0)
8 %% This file is part of
10 %% SECS2D - A 2-D Drift--Diffusion Semiconductor Device Simulator
11 %% -------------------------------------------------------------------
12 %% Copyright (C) 2004-2006 Carlo de Falco
16 %% SECS2D 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 %% SECS2D 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 SECS2D; If not, see <http://www.gnu.org/licenses/>.
29 Nnodes = columns(imesh.p);
30 Nelements = columns(imesh.t);
31 Varnodes = setdiff(1:Nnodes,Dnodes);
34 gamma = ones(Nnodes,1);
36 betax = Jp(1,:)./ mobp0';
37 betay = Jp(2,:)./ mobp0';
38 beta = 2.5*[betax;betay];
40 Sn = Uscharfettergummel3(imesh,alpha,gamma,eta,beta);
42 denom = (tp*(n+sqrt(n0.*p0))+tn*(p+sqrt(n0.*p0)));
44 MASS_LHS1 = Ucompmass2(imesh,1.5*R,ones(Nelements,1));
45 MASS_LHS2 = Ucompmass2(imesh,1.5*p./twp1,1./twp0);
47 LHS = Sn + MASS_LHS1 + MASS_LHS2;
50 PJoule = Jp(1,:).*E(1,:) + Jp(2,:).*E(2,:);
53 rhsJoule = Ucompconst (imesh,ones(Nnodes,1),PJoule');
54 rhsR_G = Ucompconst (imesh,1.5*G.*Tp,ones(Nelements,1));
55 rhsTh_L = Ucompconst (imesh,1.5*p.*Tl./twp1,1./twp0);
56 RHS = rhsJoule + rhsR_G + rhsTh_L;
58 Tp(Varnodes) = LHS(Varnodes,Varnodes) \(RHS(Varnodes) -...
59 LHS(Varnodes,Dnodes)*Tp(Dnodes));