bryancole / raypier_optics

A raytracing toolkit for optical design
Other
58 stars 8 forks source link

Visualizing Gaussian beams with skew rays #9

Open Jonas231 opened 2 years ago

Jonas231 commented 2 years ago

Hi Bryan,

you hat stated somewhere that you implemented a method to visualize Gaussian beams in the layout plot using skew rays. Do you have an example for this?

Best regards, Jonas

bryancole commented 2 years ago

Hi Jonas, Take a look at test/test_gaussian_ray_source.py (it's not really a unit-test, so this should be in the examples folder). The skew rays lie on the margin of a paraxial gaussian beam. This is probably only really useful for very long wavelengths. If you want actual diffraction-limited point-spread functions etc., you should use a GaussletSource and the EFieldProbe classes.With a GaussletSource, you can set "show_paras" True in order to display the parabasal rays (these are the skew rays used to calculate the E-field and propagate the gaussian beam). If you set the resolution<1, you'll just get a single Gausslet base-ray and can show the para-basal raysto see how the beam width / astygmatism changes over the beam path. Bryan On Tue, 2022-06-14 at 05:00 -0700, Jonas231 wrote:

Hi Bryan, you hat stated somewhere that you implemented a method to visualize Gaussian beams in the layout plot using skew rays.

Do you have an example for this? Best regards,

Jonas

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>