tidy3d.SteadyChargeResidualMonitor#
- class SteadyChargeResidualMonitor[source]#
Bases:
HeatChargeMonitorPer-node residual monitor for Charge simulations (debug tool).
- Parameters:
center (tuple[Union[float, autograd.tracer.Box], Union[float, autograd.tracer.Box], Union[float, autograd.tracer.Box]] = (0.0, 0.0, 0.0)) – [units = um]. Center of object in x, y, and z.
size (tuple[Union[NonNegativeFloat, autograd.tracer.Box], Union[NonNegativeFloat, autograd.tracer.Box], Union[NonNegativeFloat, autograd.tracer.Box]]) – [units = um]. Size in x, y, and z directions.
name (str) – Unique name for monitor.
unstructured (Literal[True] = True) – Return data on the original unstructured grid.
Notes
Records the per-node signed residual of each governing equation: \(R_\psi\) (Poisson), \(R_n\) (electron continuity), \(R_p\) (hole continuity), and \(R_T\) (heat) when the thermal solver is active. The electron and hole continuity equations express carrier conservation. The values are dimensionless and on the same scale as the simulation’s convergence tolerance, so the nodes with the largest \(|R|\) (those approaching or exceeding that tolerance) are where the solution least satisfies the equations (the least-converged regions). Available only through the accelerated solver.
Example
>>> import tidy3d as td >>> residual_monitor = td.SteadyChargeResidualMonitor( ... center=(0, 0.14, 0), size=(0.6, 0.3, 0), name="residual_z0", ... )
Attributes
namesizecenter- unstructured#