tidy3d.plugins.autograd.invdes.make_filter_and_project

tidy3d.plugins.autograd.invdes.make_filter_and_project#

class make_filter_and_project[source]#

Bases:

Create a function that filters and projects an array.

This is the standard filter-and-project scheme used in topology optimization.

Parameters:
  • filter_size (Tuple[int, ...]) – The size of the filter kernel in pixels.

  • beta (float, optional) – The beta parameter for the tanh projection, by default 1.0.

  • eta (float, optional) – The eta parameter for the tanh projection, by default 0.5.

  • filter_type (KernelType, optional) – The type of filter kernel to use, by default “conic”.

  • padding (PaddingType, optional) – The padding type to use for the filter, by default “reflect”.

Returns:

A function that takes an array and applies the filter and projection.

Return type:

function

Inherited Common Usage