tidy3d.plugins.adjoint.utils.filter.ConicFilter#
- class ConicFilter[source]#
Bases:
AbstractCircularFilter
Filter that convolves an image with a conical mask, used for larger feature sizes.
- 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,
attrs
are mutable. For example, the following is allowed for setting anattr
obj.attrs['foo'] = bar
. Also note that Tidy3D` will raise aTypeError
ifattrs
contain objects that can not be serialized. One can check ifattrs
are serializable by callingobj.json()
.radius (float) β [units = um]. Radius of the filter to convolve with supplied spatial data. Note: the corresponding feature size expressed in the device is typically sqrt(3) times smaller than the radius. For best results, it is recommended to make your radius about twice as large as the desired feature size.
design_region_dl (float) β [units = um]. Grid size in the design region. This sets the length scale for the conic convolution filter.
Note
\[filter(r) = max(radius - r, 0)\]Attributes
Methods
make_kernel
(coords_rad)Function to make the kernel out of a coordinate grid of radius values (in pixels).
Inherited Common Usage
- make_kernel(coords_rad)[source]#
Function to make the kernel out of a coordinate grid of radius values (in pixels).
- __hash__()#
Hash method.