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

Added timestep check #111

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 5 commits into from
Sep 5, 2022
Merged

Added timestep check #111

merged 5 commits into from
Sep 5, 2022

Conversation

gomezzz
Copy link
Collaborator
@gomezzz gomezzz commented Aug 2, 2022

Description

Summary of changes

  • Added check if number of timesteps is sufficient

Note: Merge #110 first and then switch this one to merge into main.

Resolved Issues

N/A

How Has This Been Tested?

Copy link
Collaborator Author
@gomezzz gomezzz left a comment

Choose a reason for hiding this comment

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

@torbjornstoro I can't request changes because I opened the PR but some suggestions :)

Base automatically changed from FDTD_fixes to main August 3, 2022 12:01
Copy link
Collaborator Author
@gomezzz gomezzz left a comment

Choose a reason for hiding this comment

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

@torbjornstoro some minor comments , but more importantly, tests are failing 🙏
https://github.com/esa/NIDN/runs/7661751847?check_suite_focus=true

wavelength (float): wavelength of the simulation
permittivity (tensor): tensor of relative permittivities for each layer
"""
wavelengths_of_steady_state_signal = 5
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

could you add a comment? I don't get what you mean? the number of wavelengths isn't fixed after all? Do you mean the number of oscillation cycles we want in the signal? Then maybe target_nr_of_steady_cycles or so would be better?

permittivity (tensor): tensor of relative permittivities for each layer
"""
wavelengths_of_steady_state_signal = 5
number_of_internal_reflections = 3
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also comment here, this is an assumption I guess? Would it be different for more layers, thicker layers e.g.?

)
+ wavelengths_of_steady_state_signal * wavelength / UNIT_MAGNITUDE
)
* torch.sqrt(torch.tensor(2.0))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

where does the sqrt(2) come from?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Courant number

@gomezzz gomezzz merged commit 1da7523 into main Sep 5, 2022
@gomezzz gomezzz deleted the torbjorn/fixes branch September 5, 2022 06:56
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