# Run Time
Run Time controls how long the simulation evolves electromagnetic fields.
See tidy3d.Simulation.run_time (opens new window).
Set run time from: Choose how the GUI sets the simulation run time.
- Options:
- Global Frequency
- Quality/Source Factor
- Manual
# Global Frequency
Use the center frequency from Global Settings to set the run time.
Run time: Run time computed from the global center frequency.
- Type: floating-point number
- Unit: s, ms, us, ns (default unit), ps, fs
# Quality/Source Factor
Use source and quality factors to set the run time.
source_factor: Multiplier applied to the longest source time.
- Type: floating-point number
quality_factor: Expected quality factor of the device.
- Type: floating-point number
# Manual
Enter the simulation run time directly.
run_time: Total electromagnetic evolution time.
- Type: floating-point number
- Unit: s, ms, us, ns (default unit), ps, fs
# Advanced
shutoff (Early shutoff threshold): Ratio of the instantaneous integrated E-field intensity to the maximum value at which the simulation automatically terminates time stepping.
- Type: floating-point number
- Constraint: greater than or equal to 0
- Default: 1e-5
Set to 0 to disable automatic shutoff.
← Background Medium PML →