tidy3d.StablePML#

class StablePML[source]#

Bases: AbsorberSpec

Specifies a ‘stable’ PML along a single dimension. This PML deals handles possibly divergent simulations better, but at the expense of more layers.

Parameters:
  • name (Optional[str] = None) – Optional unique name for boundary.

  • num_layers (int = 40) – Number of layers of ‘stable’ PML.

  • parameters (PMLParams = PMLParams(sigma_max=1.0, kappa_min=1.0, kappa_max=5.0, alpha_order=1, alpha_max=0.9)) – ‘Stable’ parameters of the complex frequency-shifted absorption poles.

  • extrude_structures (bool = True) – Automatically extrude structures into the absorbing region (e.g., PML or adiabatic absorber). Any structure located within 2 cells of a simulation boundary will be extended through the full thickness of the PML/absorber. The extruded region is assigned the material properties of the structure 2 cells from the simulation boundary. Extrusion is performed along the direction normal to the PML/absorber surface.

Example

>>> pml = StablePML(num_layers=40)

See also

PML:

A standard PML along a single dimension.

Absorber:

Specifies an adiabatic absorber along a single dimension.

Notebooks:
Lectures:

Attributes

num_layers#
parameters#
extrude_structures#