fdtdx.extend_material_to_pml

fdtdx.extend_material_to_pml#

fdtdx.extend_material_to_pml(objects, arrays)[source]#

Extend interior-edge material values into each PML region.

For each PML boundary in objects.pml_objects, the material values at the last non-PML grid cell (the “interior edge”) are broadcast across the entire PML depth. This is applied to inv_permittivities, inv_permeabilities (when it is an array rather than a scalar float), electric_conductivity, and magnetic_conductivity (when they are not None).

Parameters:
Return type:

ArrayContainer

Returns:

Updated ArrayContainer with PML regions filled from interior-edge values.

Warns:

UserWarning – If a PML region already contains non-default (non-background) material values that would be overwritten.