regenerate_dc

si_fab.components.dir_coupler.regeneration.regen_utils.regenerate_dc(dir_coupler_class, lengths, wavelengths, sim_sw, resimulate=False, refit=True, plot=True)

Function that allows to resimulate, refit and plot the results of the directional coupler specified in dir_coupler_class.

Parameters:
dir_coupler_class

Directional coupler to regenerate. The name should not contain parentheses (). This PCell should only have one free parameter, the length.

lengthsnd.array

Numpy array of the lengths to be resimulated, refitted or replotted.

wavelengthstuple

List of wavelengths.

sim_swstr

Simulation software to be used. Accepted values are “Lumerical” or “CST”.

resimulateboolean, optional

If True, it runs simulations for all the specified lengths and wavelengths.

refitboolean, optional

If True, it performs a fitting of the simulation data and stores the polynomial coefficients.

plotboolean, optional

If True, it plots the results of the simulation and of the fitting.