tidy3d.SteadyConvergenceData#
- class SteadyConvergenceData[source]#
Bases:
Tidy3dBaseModelPer-bias Newton convergence state for a steady-state charge sweep.
- Parameters:
converged (Optional[SteadyVoltageDataArray] = None) –
Trueat biases where the Newton iteration met the configured tolerance andFalseotherwise.n_iters (Optional[SteadyVoltageDataArray] = None) – Number of Newton iterations taken at each bias. At a non-converged bias this equals the cap if
max_iterswas hit, or the count of attempted steps before divergence.residual_history (Optional[ConvergenceHistoryDataArray] = None) – Per-bias trace of the absolute residual norm. Dimensions are
(v, pseudo_step, component); ragged biases are NaN-padded alongpseudo_stepto the longest trace – usen_itersfor the unpadded length per bias.
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#