-
Notifications
You must be signed in to change notification settings - Fork 9
Several small changes #11
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
Conversation
- Removed materials which have eps < 0 in that spectrum
- Changed lower end of target freq to 250nm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment.
nidn/trcwa/constants.py
Outdated
@@ -1,14 +1,14 @@ | |||
import torch | |||
|
|||
# NB: Here, we assume that the standard is micrometre (um). | |||
TRCWA_UNIT_MAGNITUDE = 10 ** (-6) | |||
TRCWA_UNIT_MAGNITUDE = 10 ** (-7) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not fully aware of the entire code base, but I think this isn't the solution to changing the size of the grid.
When initialising the grid, if we write L1 = 1 (and L2 = 1) and freq = 0.5, then the relation between these is the only thing that matters.
We can decide ourselves if the L1 = 1 means 1 um or 1 nm or 1 * 10^-7 m.
The wavelength is in this case 1 / 0.5 = 2 um or 2 nm or 2 * 10^-7 m.
If we want to reduce the grid size, then changing L1 and L2 to 0.1 instead of 1 should be enough - unless I have misunderstood something.
- Fixed frequency sorting in target frequencies - Reverted MAGNITUDE change - Changed default L for TRCWA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Third times the charm!
…nto Several-small-changes
Merge all PR <= 10 first