tidy3d.AutoGrid#
- class AutoGrid[source]#
Bases:
GridSpec1dSpecification for non-uniform grid along a given dimension.
- Parameters:
min_steps_per_wvl (Attribute:
min_steps_per_wvl) βTypeConstrainedFloatValue
Default= 10.0
DescriptionMinimal number of steps per wavelength in each medium.
max_scale (Attribute:
max_scale) βTypeConstrainedFloatValue
Default= 1.4
DescriptionSets the maximum ratio between any two consecutive grid steps.
dl_min (Attribute:
dl_min) βTypeNonNegativeFloat
Default= 0
DescriptionLower 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.mesher (Attribute:
mesher) βTypeGradedMesher
Default= GradedMesher(typeβGradedMesherβ)
DescriptionThe type of mesher to use to generate the grid automatically.
Example
>>> grid_1d = AutoGrid(min_steps_per_wvl=16, max_scale=1.4)
See also
UniformGridUniform 1D grid.
GridSpecCollective grid specification for all three dimensions.
- Notebooks:
- Lectures:
Attributes
Methods
- min_steps_per_wvl#
- max_scale#
- dl_min#
- mesher#
- __hash__()#
Hash method.