tidy3d.ChargeToleranceSpec#

class ChargeToleranceSpec[source]#

Bases: Tidy3dBaseModel

Charge tolerance parameters relevant to multiple simulation analysis types.

Parameters:
  • abs_tol (PositiveFloat = 10000000000.0) – Absolute tolerance used as stop criteria when converging towards a solution.

  • rel_tol (PositiveFloat = 1e-10) – Relative tolerance used as stop criteria when converging towards a solution.

  • max_iters (PositiveInt = 30) – Indicates the maximum number of iterations to be run. The solver will stop either when this maximum of iterations is met or when the tolerance criteria has been met.

  • ramp_up_iters (PositiveInt = 1) – In order to help in start up, quantities such as doping are ramped up until they reach their specified value. This parameter determines how many of this iterations it takes to reach full values.

Example

>>> import tidy3d as td
>>> charge_settings = td.ChargeToleranceSpec(abs_tol=1e8, rel_tol=1e-10, max_iters=30)

Attributes

abs_tol#
rel_tol#
max_iters#
ramp_up_iters#