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

Questions #6

Open
fatpunkybearass opened this issue Jan 29, 2024 · 1 comment
Open

Questions #6

fatpunkybearass opened this issue Jan 29, 2024 · 1 comment
Assignees

Comments

@fatpunkybearass
Copy link

Hi thanks for the inkstone package.

I'd like to ask about questions other than issues.

  1. What is the num_g parameter? Why the higher this value the smaller z distance I can calculate?
    for num_g=5
    image
    for num_g=50
    image

  2. And I set up a basic grating and use normal incidence (s.SetExcitation(theta=0., phi=0., s_amplitude=1, p_amplitude=0)) , is the field in x-z plane something I can see in real experiment using just laser and grating, nothing else? I did real experiment using laser to shine on this grating and I got diffracted plane waves into different directions, but here in simulation in the x-z plane E-field I see beams propagating parallel forward.
    simulation
    image
    experiment
    image

Thank you very much

@alexysong
Copy link
Owner

Hi,

  1. I don't understand what exactly you are calculating and what does it mean by "it doesn't calculate"? Can you please give a minimal example code?
  2. The simulation should match the experiment if done right. Your simulated field pattern is not a plane wave; it looks like a combination of some orders. Your experiment is probably a finite-waist incident beam on a larger grating. The output two orders walk-off physically. The simulation is infinite plane wave incident on infinite grating.

@alexysong alexysong self-assigned this Feb 23, 2024
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

No branches or pull requests

2 participants