update_structure#

Parametrization.update_structure(fdtd_session: FdtdSession, params: ndarray, polygon_name: str | None = None) None#

Add parametrized geometry to FDTD simulation

For ParametrizedGeometry, the structure dictionary contains property mappings in the format “object_name::property_name”: value. This method applies those properties to the corresponding objects in the FDTD session.

Assumes the objects already exist in the FDTD simulation (creating during setup).

Parameters:
fdtd_sessionFdtdSession

The FDTD session object managing the simulation.

paramsnp.ndarray

New parameter values to update the geometry.

polygon_namestr, optional

Ignored. Accepted to match the BaseParametrization API so CombinedParametrization can pass per-child overrides uniformly. Parametrization does not back a single polygon object, so the override has no effect here.