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

Make the speed of the particle dependent on the refractive index of the medium #178

Open
yakir12 opened this issue Nov 6, 2018 · 3 comments

Comments

@yakir12
Copy link

yakir12 commented Nov 6, 2018

Since you time everything we should add this to the mix. While it's usually not crucial to propagate rays up to a certain point in time (but instead propagate them up to a certain point in space), since you already do that, we might as well affect the speed dependent on the refractive index of the medium (and obstacles). This would be good down the line if and when we want to include diffraction.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Datseris
Copy link
Member

Datseris commented Nov 6, 2018

This is not possible to happen, unfortunately. One has to find a smarter workaround that doesn't change the velocity.

Literally everything in DynamicalBilliards assumes that the velocity measure is exactly 1. This can't be changed as one would have to re-write pretty much the entire collision, propagation methods and probably much more.

@Datseris
Copy link
Member

Datseris commented Nov 6, 2018

Ah but wait. Wait wait,

yes this can be done if you implement this Phonon particle. Of course a lot of new code would have to be written, but then it is possible. It is not possible for the existing Particle.

@Datseris
Copy link
Member

There is a much smarter way to do this. Once you open the Photon issue I will write the code that showcases how easy this is.

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