# AutoGrid

AutoGrid creates a non-uniform grid from the simulation wavelength, materials, geometry, and local refinement objects.

This option corresponds to tidy3d.AutoGrid (opens new window).

min_steps_per_wvl: Minimum number of grid steps per wavelength in each medium.

  • Type: floating-point number
  • Default: 10
  • Required field

Minimum steps per wavelength

min_steps_per_sim_size: Minimum number of grid steps along the longest edge of the simulation domain.

  • Type: floating-point number
  • Default: 10

Minimum steps per simulation size

# Advanced

dl_min: Minimum grid step size in the selected direction.

  • Type: floating-point number
  • Unit: m, mm (default unit), um
  • Default: 0

max_scale: Maximum ratio between two consecutive grid steps.

  • Type: floating-point number
  • Default: 1.4

set reference from global frequency: Toggle whether the reference frequency is derived from the Global Settings frequency settings.

  • Options:
    • True: Use the global frequency settings as the reference frequency.
    • False: Enter a reference frequency manually.

reference frequency: Frequency used as the reference for automatic non-uniform grid generation.

  • Type: floating-point number
  • Unit: Hz, kHz, MHz, GHz (default unit), THz

NOTE

reference frequency is converted to the free-space wavelength used by AutoGrid.