rallured / PyXFocus

General purpose raytracing software with an emphasis on X-ray telescope design
Other
2 stars 3 forks source link

Modified Wolter-Schwarzschild surface functions. If the ray encounter… #6

Closed rallured closed 6 years ago

rallured commented 6 years ago

…s a radius greater than focal length, a nan will result and the ray will be assumed to miss the surface. Same thing if iterations goes beyond 25. Missed rays (for wsPrimary,wsSecondary,wsPrimaryBack,wsSecondaryBack) will simply revert the rays position to its starting position.

I also added a test module in the examples directory. This includes a few functions to launch rays at Wolter-Schwarzschild surfaces over large ranges. I used this to investigate whether the algorithms were robust or not.