flex_rf.tidy3d.QuasiUniformGrid
Type: class │ Base(s): AbstractAutoGrid
Description
Section titled “Description”Similar to UniformGrid that generates uniform 1D grid, but grid positions
are locally fine tuned to be snaped to snapping points and the edges of structure bounding boxes.
Internally, it is using the same meshing method as AutoGrid, but it ignores material information in
favor for a user-defined grid size.
Example(s)
Section titled “Example(s)”grid_1d = QuasiUniformGrid(dl=0.1)Parameters
Section titled “Parameters”dl [PositiveFloat] |
|
Grid size for quasi-uniform grid generation. Grid size at some locations can be slightly smaller. |
max_scale [float] = 1.4 |
|
Sets the maximum ratio between any two consecutive grid steps. |
mesher [MesherType] = factory: GradedMesher |
|
The type of mesher to use to generate the grid automatically. |
dl_min [NonNegativeFloat | None] = None |
|
Lower bound of the grid size along this dimension regardless of structures present in the simulation, including override structures with |
Methods
Section titled “Methods”estimated_min_dl(wavelength: float, structure_list: list[Structure], sim_size: tuple[float, 3]) |
|
Estimated minimal grid size, which equals grid size here. |