Sjoerd de Haan, DataDrivenLab · Published · Updated · Simulation of perovskite solar cells

Does SIMsalabim converge at 1024 m−3 (1018 cm−3) ion density?

Yes, with the right settings. Towards 1024 mobile ions per cubic metre (1018 cm−3), drift-diffusion simulations of perovskite solar cells can stop converging. Is this a physical limit of the model? No, it is not. With the right solver settings, the full range up to 1024 m−3 (1018 cm−3) converges. IonMonger, a solver with a simpler model, already gave hope; the full SIMsalabim model, with two mobile ion species and charged traps, converges too. In our steady-state test with SIMsalabim v5.37 on one p-i-n cell, 17 of 27 voltage points converged at this density with the default settings, because SimSS reached its limit of 2,000 iterations. With an old damping value (maxAcc = 0.1, the default of v5.19 to v5.28) none did. These lines in simulation_setup.txt made all 27 converge:

maxItSS = 200000   * default 2000, too low at high ion density
minAcc = 0.5       * default since v5.30; older files have 0.04
maxAcc = 0.95      * default since v5.30; older files have 0.1
What you see Likely cause What to do
No convergence for Vint=... and exit code 95 iteration limit reached raise maxItSS; check that maxAcc is not an old 0.1
Densities have converged: FALSE in log.txt, with Poisson solver converged: TRUE the main loop needs more iterations the same
Could not determine (all) solar cell parameters. too few voltage points converged the same
exit code 94 a point failed and failureMode stops the run the same; check failureMode
exit code 97 timeout reached raise timeout
exit code 0, but the result changes with NP grid too coarse raise NP

This article explains why high ion densities are hard to solve, which settings matter, and how to check that a converged result can be trusted.

Why are high ion densities hard to simulate?

Mobile ions, mainly iodide vacancies [3], screen the electric field in the perovskite. The ions move until their own charge cancels the field in the bulk, and they pile up in thin layers inside the perovskite, next to each transport layer. We call these the ion layers.

The example in this article is based on the p-i-n cell of Diekmann et al. [12]: PTAA (10 nm), a triple-cation perovskite (500 nm) and C60 (30 nm) between two electrodes. The polymer PTAA lets holes through to one electrode and blocks electrons. The fullerene C60 lets electrons through to the other electrode and blocks holes. The perovskite absorbs the light. Its nominal composition is Cs0.05(FA0.83MA0.17)0.95Pb(I0.83Br0.17)3.

Line chart of electric potential across a PTAA, perovskite and C60 stack at 0.6 V. Without mobile ions the potential rises in a straight line through the perovskite. With 1e22 to 1e24 ions per cubic metre the perovskite is nearly flat and the drop moves into the transport layers.
Figure 1. Electric potential across a p-i-n cell (PTAA 10 nm, perovskite 500 nm, C60 30 nm) with 0.6 V across it, without mobile ions (dashed) and for three ion densities (solid). Grey: transport layers. Right: close-up of the C60 side. The slope is the electric field. Calculated from the Poisson equation with Boltzmann ions; electrons and holes left out.

Two effects act on the ions in an ion layer. The electric field drives them towards the interface, and diffusion drives them back into the bulk. At rest, the two cancel at every point. The thickness of the resulting layer is set by the Debye length:

λD = √( ε0 εr kBT / (q2 Nion) )

Over one Debye length, the potential in the layer falls by a factor e, as long as the drop is small compared with kBT/q (26 mV). The product of the vacuum permittivity ε0 and the relative permittivity εr says how strong a field a charge makes in the material: the more the material polarises, the weaker the field. Device models of perovskite cells use εr = 22 to 25 [5, 11, 12]. With εr = 24 at 300 K the Debye length is about 59 nm at 1022 m−3 (1016 cm−3), 19 nm at 1023 m−3 (1017 cm−3) and 6 nm at 1024 m−3 (1018 cm−3). These numbers hold for one mobile ion species. If both signs are mobile, the length is shorter by √2.

Left: ions crowd near an interface and the potential decays by a factor e over one Debye length. Right: the Debye length falls from 59 nm at 1e22 to 6 nm at 1e24 ions per cubic metre for a relative permittivity of 24.
Figure 2. Left: ions crowd within about one Debye length of an interface, and the potential decays over the same length. Right: the Debye length for εr = 24 at 300 K.

At high ion density the perovskite is almost field-free. In a cell with thin, undoped transport layers, the remaining voltage then falls mostly across those layers: in Figure 1, at 1024 m−3 (1018 cm−3), about 0.58 V of the 0.6 V.

This makes the equations hard to solve in three ways:

Time scales on the back of an envelope. A particle with mobility μ diffuses with D = μ kBT/q, and crosses a film of thickness L in about L2/D. For L = 500 nm at 300 K:

mobility time to cross the film by diffusion
electrons and holes, model value [11] 10−4 m2 V−1 s−1 (1 cm2 V−1 s−1) 100 ns
ions, methylammonium lead iodide, measured [10] 4 × 10−10 m2 V−1 s−1 (4 × 10−6 cm2 V−1 s−1) 24 ms
ions, triple-cation perovskite, measured [11] 2 × 10−12 m2 V−1 s−1 (2 × 10−8 cm2 V−1 s−1) 5 s
iodide vacancies, IonMonger default set, 298 K 4 × 10−16 m2 V−1 s−1 (4 × 10−12 cm2 V−1 s−1) 7 h

The ratio of the times is the ratio of the mobilities, and ion mobilities in the literature differ by many orders of magnitude.

A field speeds this up. In Figure 1 without ions, 0.43 V drops across the 500 nm of perovskite. A particle drifts with speed μE, so electrons cross in about 6 ns and the triple-cation ions in about 0.3 s.

At high ion density the ions do not have to cross the film. To flatten the potential in Figure 1, about 4 × 1015 ions per m2 (4 × 1011 cm−2) must collect at an interface. At 1024 m−3 (1018 cm−3), shifting all ions by 4 nm does this. The triple-cation ions drift at 1.7 nm per millisecond in this field, so it takes about 2 ms. One transient simulation has to cover all these time scales.

Is non-convergence a physical limit or a solver setting?

A simpler model gives hope. IonMonger [4, 5], a drift-diffusion code with a numerical scheme made for stiff ion problems [6], converges at these densities on its own standard cell. Its model is simpler: one mobile ion species, fixed lifetimes instead of explicit traps, and only one carrier type in each transport layer. It does contain the feedback between dense mobile ions and the potential, so that feedback can be solved.

Can the full model be solved too? SIMsalabim adds a second mobile ion species, explicit traps in the bulk and at the interfaces that can carry charge, and both carrier types in every layer. Any of these could be the obstacle, and IonMonger cannot tell.

Yes, it can. We ran SIMsalabim v5.37 on a p-i-n cell with all of these, in steady state, at 27 voltages from −0.1 to 1.2 V. With the default settings, points start to fail between 1023 and 3 × 1023 m−3 (1017 and 3 × 1017 cm−3). With a higher iteration limit and nothing else changed, every point converges up to 1024 m−3 (1018 cm−3), as Figure 3 shows. The device and the physics are the same in all these runs, so the failure is not a physical limit: the iteration was on its way to the solution and ran out of steps.

Line chart of converged voltage points out of 27 against ion density in SIMsalabim v5.37. With the default iteration limit, 17 points converge at 1e24 per cubic metre with v5.37 damping and none with v5.19 to v5.28 damping. With a raised limit all 27 converge.
Figure 3. Converged voltage points against ion density. SIMsalabim v5.37, steady state, one p-i-n cell. Orange: damping values that were the default in v5.19 to v5.28.

How do you tune SIMsalabim for high ion densities?

All settings below are described in the SIMsalabim manual (chapter 5) [2].

Check the damping (maxAcc, minAcc). SIMsalabim applies only a fraction of each update, to keep the iteration stable. If that fraction is small, each iteration makes little progress. The steady-state default changed from 0.1 to 0.95 in v5.30, and a settings file carried over from an older version keeps the old value. In our test at 1024 m−3 (1018 cm−3), the hardest voltage point took about 102,000 iterations with the old values and about 9,000 with the new ones. Both gave the same current. The defaults for transient simulations are different again (Figure 4).

Line chart of the fraction of each update that SIMsalabim applies. Steady-state default since v5.30 falls from 0.95 to 0.5, steady-state default of v5.19 to v5.28 from 0.1 to 0.04, transient default since v5.22 from 0.04 to 0.01.
Figure 4. Fraction of each update that SIMsalabim applies, as the iteration limit is used up. Released default values, manual Eq. 5.3.

Raise the iteration limit (maxItSS, maxItTrans). A run that reaches its limit may still be improving. The default of 2,000 is enough at low ion density and too low at 1024 m−3 (1018 cm−3).

Resolve the ion layers (NP, grad). Use enough grid points and concentrate them near the interfaces. At 1024 m−3 (1018 cm−3) the layers are a few nanometres thick. The manual advises grad up to about 4. The grid governs the accuracy of the result; the damping and the iteration limit govern whether it converges. In our test a finer grid changed the current at 1.2 V by 8 %, and exactly the same voltage points converged.

Two one-dimensional grids. The uniform grid has about one point inside the thin ion layer, the graded grid has several.
Figure 5. A uniform grid (top) puts few points in the ion layer (sheath, orange); a graded grid (bottom) puts many there. Schematic.

Choose the sweep direction in steady state (Vscan). Each voltage point starts from the previous solution. At 1024 m−3 (1018 cm−3), sweeping down from high voltage took at most 2,600 iterations per point, and sweeping up took up to 9,100. In steady state the ions are in equilibrium at every voltage, so the direction does not change the physics: Voc agreed within 0.02 mV. In a transient simulation the cell does have a memory, and the direction is part of the experiment.

How do you know a converged result is correct?

A run that finishes is not automatically right. Three checks:

  1. Read the exit status, not only whether output was written. SimSS prints No convergence for Vint=... for each failed point and returns exit code 95. It still writes the other points to JV.dat.
  2. Compare a few points with an independent solver, such as IonMonger [4, 5], Driftfusion [7] or ChargeTransport.jl [8].
  3. Check that the ions still fit in the crystal. The standard model treats ions as points, so their density has no maximum. In a real perovskite an ion vacancy needs a lattice site. In methylammonium lead iodide the cubic unit cell has sides of about 0.63 nm [13], so there are 1/(0.63 nm)3 ≈ 4 × 1027 unit cells per m3 (4 × 1021 cm−3), each with three halide sites. Where the ions pile up, their density at the interface is the bulk density times exp(qΔφ/kBT). Here Δφ is the potential drop across the ion layer: from the interface with the transport layer to the flat bulk of the perovskite. Starting from 1024 m−3 (1018 cm−3), a drop of about 0.21 V would multiply the density by about 4,000: one vacancy in every unit cell, which empties a third of the halide sites. In our p-i-n cell the drop at this density was at most 30 mV, a factor of about three, so the limit is far away. If your cell puts a larger drop there, use a code with a cap on the ion density: IonMonger 2.0 [5] or ChargeTransport.jl [8, 9].

Checks like these can also help the code itself. While checking our own results we found a small bug in frozen-ion runs: in SimSS v5.26 to v5.36 the ions were not really held fixed when fixIons was on. We reported it with a proposed fix, and Jan Anton Koster fixed it along very similar lines in v5.37 (October 2026). If you use fixIons, update to v5.37 and rerun results from the affected versions. Runs with mobile ions and transient runs (ZimT) were not affected.

About SIMsalabim

SIMsalabim is open source and maintained in the group of Jan Anton Koster at the University of Groningen. The main paper is by Marten Koopmans, Vincent Le Corre and Jan Anton Koster [1]. Sander Heester, Tejas Sherkar and Friso Wobben also contributed to the code.

Common questions

Why does SimSS print "No convergence for Vint"? The main loop did not meet its convergence test at that voltage. At high ion density, the cause in our test was the iteration limit maxItSS.

What does SIMsalabim exit code 95 mean? At least one point failed to converge and the run did not halt (failureMode is not 0).

Which maxAcc should I use? The shipped steady-state default is 0.95 since v5.30. It was 0.1 in v5.19 to v5.28, so check setup files that were carried over.

Is non-convergence at 1024 m−3 (1018 cm−3) physical? Not in our test. With the same device and the same physics, every point converged once the iteration limit was higher.

Can you use help with your drift-diffusion settings?

Feel free to reach out, whichever code you use: a run that does not converge, a run that takes too long, or a result you do not quite trust.

Email: sjoerd@datadrivenlabconsulting.com · Message me on LinkedIn

Sjoerd de Haan works on simulation of perovskite solar cells.

References

  1. M. Koopmans, V. M. Le Corre, L. J. A. Koster, SIMsalabim: An open-source drift-diffusion simulator for semiconductor devices, J. Open Source Softw. 7(70), 3727 (2022). doi:10.21105/joss.03727
  2. S. Heester, M. Koopmans, V. M. Le Corre, L. J. A. Koster, SIMsalabim Manual, version 5.36 (2026). PDF
  3. C. Eames, J. M. Frost, P. R. F. Barnes, B. C. O’Regan, A. Walsh, M. S. Islam, Ionic transport in hybrid lead iodide perovskite solar cells, Nat. Commun. 6, 7497 (2015). doi:10.1038/ncomms8497
  4. N. E. Courtier, J. M. Cave, A. B. Walker, G. Richardson, J. M. Foster, IonMonger: a free and fast planar perovskite solar cell simulator with coupled ion vacancy and charge carrier dynamics, J. Comput. Electron. 18, 1435–1449 (2019). doi:10.1007/s10825-019-01396-2
  5. W. Clarke, L. J. Bennett, Y. Grudeva, J. M. Foster, G. Richardson, N. E. Courtier, IonMonger 2.0: software for free, fast and versatile simulation of current, voltage and impedance response of planar perovskite solar cells, J. Comput. Electron. 22 (2022). doi:10.1007/s10825-022-01988-5
  6. N. E. Courtier, G. Richardson, J. M. Foster, A fast and robust numerical scheme for solving models of charge carrier transport and ion vacancy motion in perovskite solar cells, Appl. Math. Model. 63, 329–348 (2018). doi:10.1016/j.apm.2018.06.051
  7. P. Calado, I. Gelmetti, B. Hilton, M. Azzouzi, J. Nelson, P. R. F. Barnes, Driftfusion: an open source code for simulating ordered semiconductor devices with mixed ionic-electronic conducting materials in one dimension, J. Comput. Electron. 21, 960–991 (2022). doi:10.1007/s10825-021-01827-z. Correction: doi:10.1007/s10825-026-02618-0
  8. D. Abdel, P. Vágner, J. Fuhrmann, P. Farrell, Modelling charge transport in perovskite solar cells: Potential-based and limiting ion depletion, Electrochim. Acta 390, 138696 (2021). doi:10.1016/j.electacta.2021.138696
  9. D. Abdel, N. E. Courtier, P. Farrell, Volume exclusion effects in perovskite charge transport modeling, Opt. Quantum Electron. 55, 884 (2023). doi:10.1007/s11082-023-05125-9
  10. F. D. Elhorst, J. E. Sebastián Alonso, H. J. Bolink, L. J. A. Koster, Determining the Ion Mobility in Perovskite Solar Cells from Impedance Spectroscopy, ACS Energy Lett. 10, 4574–4579 (2025). doi:10.1021/acsenergylett.5c01690
  11. J. Thiesbrummel, S. Shah, E. Gutierrez-Partida, et al., Ion-induced field screening as a dominant factor in perovskite solar cell operational stability, Nat. Energy 9, 664–676 (2024), and its Supplementary Information. doi:10.1038/s41560-024-01487-w
  12. J. Diekmann, Z. Yang, N. Tokmoldin, et al., Rapid Parameter Prediction in Perovskite Solar Cells via AI-Assisted Performance Analysis, ACS Energy Lett. 11, 3395–3404 (2026), and its Supporting Information. doi:10.1021/acsenergylett.6c00075
  13. M. T. Weller, O. J. Weber, P. F. Henry, A. M. Di Pumpo, T. C. Hansen, Complete structure and cation orientation in the perovskite photovoltaic methylammonium lead iodide between 100 and 352 K, Chem. Commun. 51, 4180–4183 (2015). doi:10.1039/C4CC09944C