tidy3d.SteadyConvergenceData#
- class SteadyConvergenceData[source]#
Bases:
Tidy3dBaseModelConvergence record of each bias point of a DC sweep on the accelerated solver.
- Parameters:
converged (Optional[SteadyVoltageDataArray] = None) –
Trueat the bias points where the nonlinear iterations converged andFalseelsewhere. The Poisson and continuity residuals converge when they meetChargeToleranceSpec.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_stepswhen 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 ofChargeToleranceSpec.rel_tol. Dimensions are(v, pseudo_step, component), wherecomponentis'potential','electrons','holes'and, when the analysis solves the lattice temperature,'temperature'. Bias points with fewer iterations are padded with NaN, andn_itersgives the number of valid entries.cfl_history (Optional[CFLHistoryDataArray] = None) – CFL number at each nonlinear iteration and bias point, between
ChargeToleranceSpec.cfl_minandChargeToleranceSpec.cfl_number. Dimensions are(v, pseudo_step), padded with NaN likeresidual_history. Read it together withresidual_historyat 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#