victorliu / S4

Stanford Stratified Structure Solver - Electromagnetic simulator for layered periodic structures
http://www.stanford.edu/group/fan/S4/
GNU General Public License v2.0
131 stars 149 forks source link

Conical mounting polarization implementation #73

Open amsc1985 opened 6 years ago

amsc1985 commented 6 years ago

Hi, Assume 1D grating, infinitely long grating along y axis and propagation in z. p polarized Electric field --> E is along the grating periodicity along x s polarized Electric field --> E is parallel to grating orientated along y

How should I define the E field to simulate a case where E is along grating periodicity (x direction), however, i want to vary angle of incidence along the grating?

Is the below correct implementation? S:SetExcitationPlanewave( {angle,90}, -- incidence angles (spherical coordinates: phi in [0,180], theta in [0,360]) {0,0}, -- s-polarization amplitude and phase (in degrees) {1,0}) -- p-polarization amplitude and phase

thanks, A

dbosnjakovic commented 5 years ago

Hi,

Why did you you out 90 degrees for theta? When in tutorial for S4 it is written, when angles are 0, 0 the electric field is polarized along the x-axis for the p-polarization.

Best regards, Dejan