8000 Several small changes by gomezzz · Pull Request #11 · esa/NIDN · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 9 commits into from
Aug 24, 2021
Merged

Several small changes #11

merged 9 commits into from
Aug 24, 2021

Conversation

gomezzz
Copy link
Collaborator
@gomezzz gomezzz commented Aug 23, 2021

Merge all PR <= 10 first

  • Changed base frequency to 1e-7
  • Changed default target freq spectrum to 250nm - 10µm
  • Removed materials which have eps < 0 in that spectrum
  • Set default L to 2 in spectrum loss

@gomezzz gomezzz requested a review from htoftevaag August 23, 2021 08:30
Copy link
Collaborator
@htoftevaag htoftevaag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment.

@@ -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)
Copy link
Collaborator

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
@gomezzz gomezzz requested a review from htoftevaag August 24, 2021 07:45
Copy link
Collaborator
@htoftevaag htoftevaag left a 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!

@htoftevaag htoftevaag merged commit af61593 into main Aug 24, 2021
@htoftevaag htoftevaag deleted the Several-small-changes branch August 24, 2021 08:10
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
0