facebookresearch / fmmax

Fourier modal method with Jax
MIT License
97 stars 10 forks source link

Improve vector field calculation for 1D patterns #95

Closed mfschubert closed 8 months ago

mfschubert commented 8 months ago

This PR generalizes the code which handles permittivity distributions that vary in one direction only. Previously, this was detected only where the variation is in the x or y direction. Now, it is detected regardless of the direction of variation, e.g. it need not be aligned with the basis vectors.