# CustomGrid
CustomGrid uses an explicit list of grid cell sizes in the selected direction.
This option corresponds to tidy3d.CustomGrid (opens new window).
unit: Unit used for grid cell sizes.
- Options: m, mm (default unit), um
dl: Grid cell sizes used to construct the custom grid along the selected direction.
- Type: list of positive floating-point numbers separated by commas
- Unit: selected length unit
- Required field
Import (.txt): Load grid cell sizes from a text file.
# Advanced
custom_offset: Offset applied to the custom grid.
- Type: floating-point number
- Unit: m, mm (default unit), um
NOTE
Use CustomGrid when the mesh spacing should follow an explicit user-defined sequence instead of automatic or uniform grid generation.