tidy3d.RunTimeSpec#
- class RunTimeSpec[source]#
Bases:
Tidy3dBaseModelDefines specification for how long to run a simulation when added to
Simulation.run_time.- Parameters:
quality_factor (PositiveFloat) – Quality factor expected in the device. This determines how long the simulation will run as it assumes a field decay time that scales proportionally to this value.
source_factor (PositiveFloat = 3) – The contribution to the
run_timefrom the longest source is computed from thesource_timelength timessource_factor. Larger values provide more buffer at the expense of potentially givingrun_timevalues that are larger than needed.
Notes
The evaluated
run_timewill be computed from aRunTimeSpec()as follows:\[\text{run_time} = \text{source_factor} * T_{src_max} + \text{quality_factor} n_{max} L_{max} / c_{0}\]Where:
source_factorandquality_factorare fields in the spec, \(T_{src_max}\) is the longest time that a source is non-zero, \(n_{max}\) is the maximum refractive index in the simulation, \(L_{max}\) is the distance along the largest dimension in the simulation, and \(c_0\) is the speed of light in vacuum.Attributes
- quality_factor#
- source_factor#