update_structure#

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

Update the geometry in the FDTD simulation with new parameters.

This method updates the existing FDTD objects to reflect changes in the optimization parameters.

Parameters:
fdtd_sessionFdtdSession

The FDTD session object managing the simulation.

paramsnp.ndarray

New parameter values to update the geometry.

polygon_namestr, optional

Override for the FDTD CAD polygon name. Used by CombinedParametrization to give each ClosedCurve child a unique polygon in the shared simulation. Concrete parametrizations that don’t represent a polygon (e.g. Parametrization, Topology) accept and ignore this argument.