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

The relative permittivity tensor #81

Open dbosnjakovic opened 5 years ago

dbosnjakovic commented 5 years ago

Hi everyone,

I'm trying to use S4 to generate transmission of light through the optical 1D grating. In groove gratings there is a liquid crystal with a relative permittivity tensor. For simulations, I need the components yz and zy of tensor, but in the instructions it says "Components of the relative permittivity tensor of the material. Currently the xz, yz, zx, and zy components are ignored and assumed to be zero".

What does that mean? I do not get the proper results when I put that component.

perp = 1.52^2 norm = 1.73^2 eps_a = norm - perp angle_r = math.rad(angle) S:AddMaterial("E7", { {perp, 0}, {0, 0}, {0, 0}, {0, 0}, {perp+eps_a, 0}, {eps_a, 0}, {0, 0}, {eps_a, 0}, {perp+eps_a, 0} })

Please help.

Best regards, Dejan Bošnjaković