NickKarpowicz / LightwaveExplorer

An efficient, user-friendly solver for nonlinear light-matter interaction
MIT License
55 stars 8 forks source link

A version for CW? #35

Open DreamingWater opened 6 months ago

DreamingWater commented 6 months ago

could you provide a version for CW, I do not know how to fix it to CW SHG.

NickKarpowicz commented 6 months ago

Hi there! If you want to do CW propagation in the unidirectional pulse propagation mode, I'd suggest the following:

I attached a demo calculation in BBO, doing second harmonic of a 200 THz (~1.5 micron) laser. It's done in 3D so you can see the effect of spatial walk-off.

Does this make sense for you?

This works because in the UPPE mode, the time grid is periodic, so a CW beam with matching periodicity will propagate correctly. It will be trickier if you want to use the FDTD mode, since that requires a beginning and end time of the field...

Cheers, Nick Test_CW_SHG.zip Screenshot 2024-04-10 121213