# AutoGrid

Specification for non-uniform grid along a given dimension.

# Minimal Number of Steps per Wavelength

min_steps_per_wvl: Minimal number of steps per wavelength in each medium.

Type: floating-point number

  • Unit: unitless
  • Constraint: greater than or equal to 6
  • Default: 10

# Minimal Number of Steps per Simulation Size

min_steps_per_sim_size: Minimal number of steps per longest edge length of simulation domain bounding box. This is useful when the simulation domain size is subwavelength.

Type: floating-point number

  • Unit: unitless
  • Constraint: greater than or equal to 0
  • Default: 10

# Maximum Grid Size Scaling

max_scale: Sets the maximum ratio between any two consecutive grid steps.

Type: floating-point number

  • Unit: unitless
  • Constraint: [1.2, 2)
  • Default: 1.4

# Grid Size Lower Bound

dl_min: Lower bound of the grid size along this dimension regardless of structures present in the simulation, including override structures with enforced=True. It is a soft bound, meaning that the actual minimal grid size might be slightly smaller.

Type: floating-point number

  • Unit: μm
  • Constraint: greater than 0