S1 · Lesson 51 · Device simulation lab
Solving Poisson's equation with the carriers, and checking the depletion approximation
Every formula for the pn junction in this course rests on the depletion approximation: carriers vanish abruptly at the edges of the depletion region. Real device simulators (TCAD) make no such assumption. They solve Poisson's equation with the electron and hole densities included, which makes it nonlinear, by Newton's method on a grid. In this lab you'll write a small version of that solver for a junction in equilibrium and under bias, and use it to measure how good the depletion approximation is: close, and off in a predictable way.
Predict
The depletion approximation predicts a junction's peak field. Compared with the exact solution of Poisson's equation with the carriers included, is it high or low?
A few percent high. Near each edge, the majority carriers don't vanish abruptly; they fade over a few Debye lengths, partly cancelling the ionized dopants' charge. The exact solution behaves almost exactly like the depletion approximation with the voltage reduced by , about 52 mV: for a 0.77 V junction that's 3% in peak field. Under large reverse bias the correction becomes negligible.
Name it
The equations
Measure the electrostatic potential φ from the intrinsic level, with the hole quasi-Fermi potential at 0 and the electron one at (lesson 7: both flat across the junction). Then
The boundaries are neutral contacts: and .
Newton's method on a grid
On a uniform grid with spacing h, the residual at each interior point is
and its Jacobian is tridiagonal: off the diagonal, on it. Each Newton step solves (a tridiagonal solver, provided) and updates φ by δ, clipped to ±0.5 V so early steps from a crude guess can't overshoot. Starting from the neutral values on each side, it converges in about ten steps.
Resolution
The grid must resolve the Debye length on both sides, : 4 nm at cm⁻³. A junction with a heavily doped side needs a fine grid (or a nonuniform one, as real simulators use) there.
What you'll write
depletion(Na, Nd, Va=0.0): return(Vbi, W, Emax)from the depletion approximation, W in cm, in V/cm.solve_junction(Na, Nd, Va=0.0, L=4e-4, n=801): return(x, phi), the Newton solution, with the junction at L/2.junction_cap(Na, Nd, Va): the capacitance per area from the solver, by a central difference with h = 0.05 V, using a domain six depletion widths long (at 5 V reverse) and 1201 points. (Gauss's law: the charge on each side is .)
Worked example
Why does a better approximation subtract from the junction voltage?
Show the solution
- Carrier tails. Each side of the junction has a transition region a few Debye lengths thick where the majority carriers fade out.
- Where the voltage goes. Their remaining charge partly offsets the dopants', so a little of the junction voltage is spent pushing back carriers rather than across bare dopants.
- How much. Integrating Poisson's equation through those tails shows the lost voltage is kT/q on each side.
- An example. For , the plain formula gives 46.6 kV/cm; with 0.774 − 0.052 V it gives 45.1, and the Newton solver gives 45.2.
Answer the majority-carrier tails on each side of the junction use up kT/q each, in all; subtracting it gives 45.1 kV/cm in the example, against the solver's 45.2.
Worked example
How do you get the capacitance from a solver that only gives the potential?
Show the solution
- Charge from the field. By Gauss's law, the field at the junction equals the charge on one side divided by ε, so per area
- Difference two solutions. Solving at two nearby biases and differencing gives
- Check against . At 1 V and 3 V reverse the solver lands within 1.5% of , slightly above it, since the carrier tails make the effective plate spacing a little smaller than W.
Answer take from Gauss's law at two nearby biases and difference them to get .
Check
Step 1. Write depletion(Na, Nd, Va=0.0) returning (Vbi, W, Emax) in V, cm and V/cm.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 2. Write solve_junction(Na, Nd, Va=0.0, L=4e-4, n=801) returning (x, phi).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 3. Write junction_cap(Na, Nd, Va), the capacitance per area from the solver.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
A device simulator must resolve the Debye length. What is it in silicon doped 1 × 10¹⁷ cm⁻³?
Write units the way you normally would: 1.5 nm, 1500 pm and 0.0015 µm are the same answer.
Check
A junction has = 0.8 V and 0 V of reverse bias. By what percentage does the correction lower the predicted peak field?
Check
A junction's peak field is 50 kV/cm. How many ionized dopants per cm² sit on each side of it?
Explain why
Why does Newton's method need its updates clipped when it starts from a crude guess, but converge quickly once it's close?
The carrier densities depend exponentially on the potential, so the equations are strongly nonlinear. Far from the solution, the linearized Jacobian can be a poor guide: a full Newton step computed from it may overshoot by volts, and then the exponentials blow up or the iteration bounces around. Clipping each update to a fraction of a volt keeps the early steps in the range where the linearization is roughly right. Once the guess is close, the linearization is accurate, every step roughly squares the error, and the full steps are small enough that the clip never acts. That's the usual pattern for device simulators: damped steps at first, then quadratic convergence.
Practice
Keep practicing
6 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.