Hello to all
For verification purposes I'm simulating a interface between glass and vacuum. For the port in vacuum with wave input I define my electric fields as follows: E=(E0cos(alpha)exp(-i(kaxx+kayy)), -E0sin(alpha)exp(-i(kaxx+kayy)), 0), where E0=1V/m, kax=emw.k0sin(alpha), kay=k0cos(alpha).
For the output port in glass I would like to define E=(E0cos(beta)exp(-i(kaxx+kayy)), -E0sin(beta)exp(-i(kbxx+kbyy)), 0) where again E0=1V/m, kax=emw.k0*sin(beta).
But inexplicably, this is not consisten with the analytical solution. But with the following electric field for the output port it gives the correct solution: E=(E0cos(beta)exp(-i(kaxx+kayy)), E0sin(beta)exp(-i(kbxx+kbyy)), 0), where I have changed the sign in the y-component. Why do I have to change this sign?
(Im using floquet boundaries with (kax, kay), 2D model)