tidy3d.ChargeToleranceSpec#
- class ChargeToleranceSpec[source]#
Bases:
Tidy3dBaseModelCharge 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.
max_pseudo_steps (PositiveInt = 60) – Maximum number of pseudo time steps used per physical step in the drift-diffusion solver.
cfl_number (PositiveFloat = 1000000000.0) – CFL multiplier used in the drift-diffusion solver. Controls the pseudo time step size.
preconditioner_iterations (PositiveInt = 50) – Maximum number of preconditioner iterations in the linear solver of the drift-diffusion solver.
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#
- max_pseudo_steps#
- cfl_number#
- preconditioner_iterations#