NanoComp / meep

free finite-difference time-domain (FDTD) software for electromagnetic simulations
GNU General Public License v2.0
1.24k stars 625 forks source link

How to use a tensor with non-zero non-diagnal coefficients as the nonlinear susceptbility? #2911

Open wangzhenhao1994 opened 1 month ago

wangzhenhao1994 commented 1 month ago

In the "Feature/Material/Nonlinearity" part of the online doc, it says "Meep supports instantaneous, isotropic Pockels and Kerr nonlinearities". Is it possible that I use the rank-3 tensor (second order nonlinear susceptbility) of a anisotropic crystal which has non-diagnal coefficients?

wangzhenhao1994 commented 1 month ago

I realize something but not very sure:"anisotropic electric permittivity ε and magnetic permeability μ, along with dispersive ε(ω) and μ(ω) including loss/gain". So I can just use εE = ε₀E + XeE to represent the aniostropic property of the material ?