Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix dB calculation in Meep scripts for waveguide mode converter and other improvements #26

Merged
merged 1 commit into from
Oct 19, 2022

Conversation

oskooi
Copy link
Collaborator

@oskooi oskooi commented Oct 19, 2022

This PR fixes a bug in the computation of the reflectance and transmittance spectrum in dB units in the Meep scripts for the waveguide mode converter. To convert $R=|S_{11}|^2$ to dB involves $10\log_{10}{R}$ rather than $20\log_{10}{R}$ which meant that the previously reported values were twice the actual values. The plots below show the corrected spectrum for the topology-optimized designs. The values are now comparable with those reported in Schubert et al., (2022).

The topology optimization script is also updated to use subtracted_dft_fields (rather than norm_dft_fields) introduced by NanoComp/meep#2271 after #25 was merged.

optimized_mode_converter_x_mirror
optimized_mode_converter_no_mirror

@stevengj stevengj merged commit c095593 into NanoComp:main Oct 19, 2022
@oskooi oskooi deleted the mode_converter_fixes branch October 19, 2022 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants