update_structure#
- CombinedParametrization.update_structure(fdtd_session: FdtdSession, params: ndarray) None#
Update all children’s geometries in the FDTD simulation.
The combined parameter vector is split into per-child slices and each child’s
update_structureis called with its own slice. Per-childpolygon_nameoverrides are passed as an explicit kwarg so that eachClosedCurvechild gets its own object in the FDTD CAD without mutating the child’sstructuredict.- Parameters:
- fdtd_session
FdtdSession The FDTD session object managing the simulation.
- params
np.ndarray Combined parameter vector of length
n_params.
- fdtd_session
- Raises:
ValueErrorIf params has incorrect length.