tidy3d.UniformUnstructuredGrid#
- class UniformUnstructuredGrid[source]#
- Bases: - UnstructuredGrid- Uniform grid. - Parameters:
- attrs (dict = {}) β Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields, - attrsare mutable. For example, the following is allowed for setting an- attr- obj.attrs['foo'] = bar. Also note that Tidy3D` will raise a- TypeErrorif- attrscontain objects that can not be serialized. One can check if- attrsare serializable by calling- obj.json().
- 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.
- dl (PositiveFloat) β [units = um]. Grid size for uniform grid generation. 
- min_edges_per_circumference (PositiveFloat = 15) β Enforced minimum number of mesh segments per circumference of an object. Applies to - Cylinderand- Sphere, for which the circumference is taken as 2 * pi * radius.
- min_edges_per_side (PositiveFloat = 2) β Enforced minimum number of mesh segments per any side of an object. 
- non_refined_structures (Tuple[str, ...] = ()) β List of structures for which - min_edges_per_circumferenceand- min_edges_per_sidewill not be enforced. The original- dlis used instead.
 
 - Example - >>> heat_grid = UniformUnstructuredGrid(dl=0.1) - Attributes - Methods - Inherited Common Usage - dl#
 - min_edges_per_circumference#
 - min_edges_per_side#
 - non_refined_structures#
 - __hash__()#
- Hash method.