]> Creatis software - CreaPhase.git/blob - octave_packages/secs2d-0.0.8/Utilities/Udopdepmob.m
Add a useful package (from Source forge) for octave
[CreaPhase.git] / octave_packages / secs2d-0.0.8 / Utilities / Udopdepmob.m
1 function mob=Udopdepmob (mesh,mu,par,D);
2
3 % Udopdepmob (mu,par,D);
4
5 % This file is part of 
6 %
7 %            SECS2D - A 2-D Drift--Diffusion Semiconductor Device Simulator
8 %         -------------------------------------------------------------------
9 %            Copyright (C) 2004-2006  Carlo de Falco
10 %
11 %
12 %
13 %  SECS2D is free software; you can redistribute it and/or modify
14 %  it under the terms of the GNU General Public License as published by
15 %  the Free Software Foundation; either version 2 of the License, or
16 %  (at your option) any later version.
17 %
18 %  SECS2D is distributed in the hope that it will be useful,
19 %  but WITHOUT ANY WARRANTY; without even the implied warranty of
20 %  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 %  GNU General Public License for more details.
22 %
23 %  You should have received a copy of the GNU General Public License
24 %  along with SECS2D; If not, see <http://www.gnu.org/licenses/>.
25
26 NI  = sum(D(mesh.t(1:3,:)),1)'/3;
27 mob =   par(1)*exp(-par(4)./NI) +...
28     (mu-par(2))./(1+(NI/par(5)).^par(7)) -...
29     par(3)./(1+(par(6)./NI).^par(8));
30