Hi Amrita,
Reading more about S-parameters, I found the following:
The analysis group generates two S-parameter results: “S” and “S_polarization”. The first one is the S parameter for dominant input polarization and the same output polarization (e.g., if the source is s-polarized, it will calculate the result only for the s-polarized transmitted and reflected light). The second one is the S parameter for dominant input polarization and both output polarizations, which is only useful when we expect the polarization to be rotated by the metamaterial. In the simple case considered here, there is no polarization rotation, so we can simply use the “S” result and its attributes: “S11_Gn” and “S21_Gn” (source in medium 1) and “S22_Gn” and “S12_Gn” (source in medium 2). Therefore, I modified the script to have a source with circular polarization and adjusted the sweeps to obtain the results of S_polarization. However, when I want to plot the phase, I encounter the error marked in the image at line 30.
Can you help me with this?
what I’m doing is correct?