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

Incident wave direction vector #45

Open
inzhevatkin opened this issue Sep 5, 2022 · 2 comments
Open

Incident wave direction vector #45

inzhevatkin opened this issue Sep 5, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@inzhevatkin
Copy link

It would be interesting to add an arrow of the incident wave to the 3D visualizer. It direction coincides with the vector prop.

@myurkin myurkin assigned myurkin and dsmunev and unassigned myurkin Sep 6, 2022
@myurkin myurkin added the enhancement New feature or request label Sep 6, 2022
@myurkin
Copy link
Member

myurkin commented Sep 6, 2022

This is a first step for potential visualization of the incident beam. But it is not clear (even conceptually) how this general problem should be solved (consider, e.g., some complex Bessel beam).

So for now, it is more an illustration of the interplay of -orient and -prop options. And in line with this, I recommend to distinguish two reference frames (particle and laboratory ones). If non-trivial -orient is used, current axes (bound to a particle) should be named X', Y', Z' (and probably have different color), while the laboratory axes X,Y,Z can be the same as now. When default orientation is used, a single frame X,Y,Z seems to be sufficient.

@myurkin myurkin added this to the 1.0 milestone Sep 6, 2022
@myurkin
Copy link
Member

myurkin commented Sep 6, 2022

In future, we can even think about using the 3D image as a control of both particle orientation and propagation direction. So rotating the particle with mouse will change the -orient angles, while moving the beam-propagation arrow (which can be limited to some sphere around the particle), will change the -prop values. And we can extend this to moving the beam center as well (for beams other than plane wave).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants