fdtdx.ConnectHolesAndStructures

Bases: SameShapeTypeParameterTransform

Connects floating polymer regions and ensures air holes connect to outside.

This constraint module ensures physical realizability of designs by: 1. Either connecting floating polymer regions to the substrate or removing them 2. Ensuring all air holes are connected to the outside (no trapped air)

The bottom (lower z) is treated as the substrate reference.

Attributes:
  • fill_material (str | None) –

    Name of material to use for filling gaps when connecting regions. Required when working with more than 2 materials. Defaults to None.

  • background_material (str | None) –

    Name of the background material. If none, the material with the lowest permittivity is used. Defaults to None.