pyNLO / PyNLO

Python package for nonlinear optics
https://pynlo.readthedocs.io/en/latest/
GNU General Public License v3.0
96 stars 52 forks source link

Please more examples! #46

Open elhombre45625 opened 6 years ago

elhombre45625 commented 6 years ago

Hi! Your project seems really great, however more examples would be appreciated! There is no free software for designing a pulse compressor using a pair of gratings. Such an example would boost the popularity of your code! Regards!

DanHickstein commented 6 years ago

Hi @gcailloux!

You are right, PyNLO does need better examples and documentation. If you can develop a nice example for the grating compressor design functions, we would be happy to incorporate it, and I'm sure people would find it useful.

@ycasg probably has some better code, but here is the code that I used a few years ago when designing a grating compressor with 940 lines/mm gratings for 1550 nm light: https://gist.github.com/DanHickstein/b26ae4106ab834898102ea063b5b0230

It makes a plot of the GDD and TOD as a function of grating separation. Also, it plots how much the TOD will broaden pulses of various duration. Probably not exactly what you are looking for, but perhaps a start until you make something better :)

compressor gdd and tod effect of tod