tidy3d.SteadyConvergenceData#

class SteadyConvergenceData[source]#

Bases: Tidy3dBaseModel

Convergence record of each bias point of a DC sweep on the accelerated solver.

Parameters:
  • converged (Optional[SteadyVoltageDataArray] = None) – True at the bias points where the nonlinear iterations converged and False elsewhere. The Poisson and continuity residuals converge when they meet ChargeToleranceSpec.rel_tol.

  • n_iters (Optional[SteadyVoltageDataArray] = None) – Number of nonlinear iterations at each bias point. At a bias point that did not converge it equals ChargeToleranceSpec.max_pseudo_steps when that limit was reached, and is smaller when the iterations stopped earlier. With impact ionization, or with a high-field mobility driven by the quasi-Fermi level gradient, it can reach twice that limit.

  • residual_history (Optional[ConvergenceHistoryDataArray] = None) – Residual of each equation at each nonlinear iteration and bias point. The 'potential', 'electrons' and 'holes' components are on the scale of ChargeToleranceSpec.rel_tol. Dimensions are (v, pseudo_step, component), where component is 'potential', 'electrons', 'holes' and, when the analysis solves the lattice temperature, 'temperature'. Bias points with fewer iterations are padded with NaN, and n_iters gives the number of valid entries.

  • cfl_history (Optional[CFLHistoryDataArray] = None) – CFL number at each nonlinear iteration and bias point, between ChargeToleranceSpec.cfl_min and ChargeToleranceSpec.cfl_number. Dimensions are (v, pseudo_step), padded with NaN like residual_history. Read it together with residual_history at a bias point that did not converge, as described in Solvers and convergence.

Example

>>> import tidy3d as td
>>> V = [-1, 0, 1]
>>> converged = td.SteadyVoltageDataArray(data=[1, 1, 0], coords={"v": V})
>>> n_iters = td.SteadyVoltageDataArray(data=[42, 38, 100], coords={"v": V})
>>> conv = SteadyConvergenceData(converged=converged, n_iters=n_iters)

Attributes

converged#
n_iters#
residual_history#
cfl_history#