We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

Ansys Learning Forum Forums Discuss Simulation Photonics The wavelength values are different Reply To: The wavelength values are different

Afroditi Petropoulou
Ansys Employee

Hello,

Is the example that you are using the SWG_bandstructure.fsp and the associated SWG_analyze_bandstructure.lsf script file?

If yes, as you can see in line 31 of the script file, the w_high_res parameter is calculated using the polynomial fit calculated in line 25. The wavelength is then calculated using this w_high_res parameter.

Different results can give different fits and hence different w_high_res and wavelengths. 

Since you cannot avoid the polynomial fit, unless you create a new workflow, the easiest way to get effective index results at the same wavelengths would be probably by interpolating the data using the interp - script command. You can try to check if the data are interpolated properly.

 

Best Regards,

Afroditi