regenerate_ybranch
- si_fab.components.y_branch.regeneration.regen_utils.regenerate_ybranch(ybranch_class, wavelengths, center_wavelength, resimulate=True, plot=True)
It regenerates the simulation fitting data and/or the plots of the optimized Y-splitter.
- Parameters:
- ybranch_class
PCell class of the Y-branch to resimulate or replot
- wavelengthstuple
Tuple representing the wavelength range for the simulation and for the plots. The tuple must be in the format (min, max, number of points).
- center_wavelength: float
The center wavelength around which to have polynomial fitting
- resimulateboolean, optional, default=True
If True, it runs the Lumerical FDTD simulation of ysplitter_class, fits the transmission and reflection as a function of wavelength and stores the fitting coefficients in data/component_name.json
- plotboolean, optional, default=True
If True, it plots the transmission and reflection as a function of wavelength.