NickKarpowicz / LightwaveExplorer

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

Improve use of biaxial crystals #44

Closed NickKarpowicz closed 1 month ago

NickKarpowicz commented 1 month ago

The refractive index equations used when the crystal was biaxial were too approximate. The ones used in this version are now fully correct for UPPE in orthorhombic crystals and can be made quite good with an effective rotation of monoclinic crystals.

Two sequence functions are introduced that allow easier rotation into the effective fast and slow axes, rotateIntoBiaxial() and rotateFromBiaxial().

The python module now includes helper functions for rotation and axis reordering on the nonlinear tensors.