tidy3d.UniformUnstructuredGrid#
- class UniformUnstructuredGrid[source]#
Bases:
UnstructuredGridUniform grid.
- Parameters:
relative_min_dl (NonNegativeFloat = 0.001) – The minimal allowed mesh size relative to the largest dimension of the simulation domain.Use
relative_min_dl=0to remove this constraint.remove_fragments (bool = False) – Whether to remove fragments before meshing. This is useful when overlapping structures generate internal boundaries that can lead to very small cell volumes.
dl (PositiveFloat) – [units = um]. Grid size for uniform grid generation.
min_edges_per_circumference (NonNegativeFloat = 15) – Enforced minimum number of mesh segments per circumference of an object. Applies to
CylinderandSphere, for which the circumference is taken as 2 * pi * radius. Set to0to skip this sizing contribution entirely (curvature-based local refinement is not applied).min_edges_per_side (NonNegativeFloat = 2) – Enforced minimum number of mesh segments per any side of an object. Set to
0to skip this sizing contribution entirely (side-length-based local refinement is not applied).non_refined_structures (tuple[str, ...] = ()) – List of structures for which
min_edges_per_circumferenceandmin_edges_per_sidewill not be enforced. The originaldlis used instead.
Example
>>> heat_grid = UniformUnstructuredGrid( ... dl=0.1, min_edges_per_circumference=15, min_edges_per_side=2 ... )
Attributes
Minimum mesh size used by this grid specification.
relative_min_dlremove_fragments- dl#
- min_edges_per_circumference#
- min_edges_per_side#
- non_refined_structures#
- property min_mesh_size#
Minimum mesh size used by this grid specification.