Hi Erik, thank you for the clarification!
Regarding the polarization, are you stating that my code is now, the polarization of the material set by the mat properties is opposite the polarization direction set by the coord system? If so, how could I correct the coordinate system lines of code?