# Created by Octave 3.2.4, Tue Nov 23 12:53:52 2010 EST <mockbuild@jetta.math.Princeton.EDU.private>
# name: cache
# type: cell
# rows: 3
# columns: 9
# name: <cell-element>
# type: string
# elements: 1
# length: 26
DDGelectron_driftdiffusion
# name: <cell-element>
# type: string
# elements: 1
# length: 327
 n=DDGelectron_driftdiffusion(psi,x,ng,p)
     Solves the continuity equation for electrons
     input:  psi   electric potential
 	        x     integration domain
             ng    initial guess and BCs for electron density
             p     hole density (for SRH recombination)
     output: n     updated electron density

# name: <cell-element>
# type: string
# elements: 1
# length: 80
 n=DDGelectron_driftdiffusion(psi,x,ng,p)
     Solves the continuity equation fo

# name: <cell-element>
# type: string
# elements: 1
# length: 12
DDGgummelmap
# name: <cell-element>
# type: string
# elements: 1
# length: 1601

 [odata,it,res] =...
            DDGgummelmap (x,idata,toll,maxit,ptoll,pmaxit,verbose)

 Solves the scaled stationary bipolar DD equation system
     using Gummel algorithm

     input: x          spatial grid
            idata.D    doping profile
            idata.p    initial guess for hole concentration
            idata.n    initial guess for electron concentration
            idata.V    initial guess for electrostatic potential
            idata.Fn   initial guess for electron Fermi potential
            idata.Fp   initial guess for hole Fermi potential
            idata.l2   scaled electric permittivity (diffusion coefficient in Poisson equation)
            idata.un   scaled electron mobility
            idata.up   scaled electron mobility
            idata.nis  scaled intrinsic carrier density
            idata.tn   scaled electron lifetime
            idata.tp   scaled hole lifetime
            toll       tolerance for Gummel iterarion convergence test
            maxit      maximum number of Gummel iterarions
            ptoll      tolerance for Newton iterarion convergence test for non linear Poisson
            pmaxit     maximum number of Newton iterarions
            verbose    verbosity level: 0,1,2

     output: odata.n     electron concentration
             odata.p     hole concentration
             odata.V     electrostatic potential
             odata.Fn    electron Fermi potential
             odata.Fp    hole Fermi potential
             it          number of Gummel iterations performed
             res         total potential increment at each step

# name: <cell-element>
# type: string
# elements: 1
# length: 19

 [odata,it,res] =.

# name: <cell-element>
# type: string
# elements: 1
# length: 22
DDGhole_driftdiffusion
# name: <cell-element>
# type: string
# elements: 1
# length: 329
 p=DDGhole_driftdiffusion(psi,x,pg,n)
     Solves the continuity equation for holes
     input:  psi     electric potential
             x       spatial grid
             pg      initial guess and BCs for hole density
             n       electron density (to compute SRH recombination)
     output: p       updated hole density

# name: <cell-element>
# type: string
# elements: 1
# length: 80
 p=DDGhole_driftdiffusion(psi,x,pg,n)
     Solves the continuity equation for ho

# name: <cell-element>
# type: string
# elements: 1
# length: 9
DDGn2phin
# name: <cell-element>
# type: string
# elements: 1
# length: 110
 phin = DDGn2phin (V,n);
         computes the qfl for electrons using Maxwell-Boltzmann
         statistics.

# name: <cell-element>
# type: string
# elements: 1
# length: 80
 phin = DDGn2phin (V,n);
         computes the qfl for electrons using Maxwell-B

# name: <cell-element>
# type: string
# elements: 1
# length: 12
DDGnlpoisson
# name: <cell-element>
# type: string
# elements: 1
# length: 1235
 [V,n,p,res,niter] = DDGnlpoisson (x,sinodes,Vin,nin,...
             pin,Fnin,Fpin,D,l2,toll,maxit,verbose)
     Solves the non linear Poisson equation
     $$ - lamda^2 *V'' + (n(V,Fn) - p(V,Fp) -D)=0 $$
     input:  x       spatial grid
             sinodes index of the nodes of the grid which are in the
                     semiconductor subdomain 
                     (remaining nodes are assumed to be in the oxide subdomain)
             Vin     initial guess for the electrostatic potential
             nin     initial guess for electron concentration
             pin     initial guess for hole concentration
             Fnin    initial guess for electron Fermi potential
             Fpin    initial guess for hole Fermi potential
             D       doping profile
             l2      scaled electric permittivity (diffusion coefficient)
             toll    tolerance for convergence test
             maxit   maximum number of Newton iterations
             verbose verbosity level: 0,1,2
     output: V       electrostatic potential
             n       electron concentration
             p       hole concentration
             res     residual norm at each step
             niter   number of Newton iterations

# name: <cell-element>
# type: string
# elements: 1
# length: 54
 [V,n,p,res,niter] = DDGnlpoisson (x,sinodes,Vin,nin,.

# name: <cell-element>
# type: string
# elements: 1
# length: 9
DDGp2phip
# name: <cell-element>
# type: string
# elements: 1
# length: 88
 phip = DDGp2phip (V,p);
 computes the qfl for holes using Maxwell-Boltzmann statistics

# name: <cell-element>
# type: string
# elements: 1
# length: 80
 phip = DDGp2phip (V,p);
 computes the qfl for holes using Maxwell-Boltzmann sta

# name: <cell-element>
# type: string
# elements: 1
# length: 9
DDGphin2n
# name: <cell-element>
# type: string
# elements: 1
# length: 109
 n = DDGphin2n (V,phin);
         computes the electron density using Maxwell-Boltzmann
         statistics.

# name: <cell-element>
# type: string
# elements: 1
# length: 80
 n = DDGphin2n (V,phin);
         computes the electron density using Maxwell-Bo

# name: <cell-element>
# type: string
# elements: 1
# length: 9
DDGphip2p
# name: <cell-element>
# type: string
# elements: 1
# length: 105
 p = DDGphip2p (V,phip);
         computes the hole density using Maxwell-Boltzmann
         statistics.

# name: <cell-element>
# type: string
# elements: 1
# length: 80
 p = DDGphip2p (V,phip);
         computes the hole density using Maxwell-Boltzm

# name: <cell-element>
# type: string
# elements: 1
# length: 14
DDGplotresults
# name: <cell-element>
# type: string
# elements: 1
# length: 32
 DDGplotresults(x,n,p,V,Fn,Fp);

# name: <cell-element>
# type: string
# elements: 1
# length: 32
 DDGplotresults(x,n,p,V,Fn,Fp);


