Ansys Learning Forum › Forums › Discuss Simulation › Photonics › 3D script for nanobeam grating › Reply To: 3D script for nanobeam grating
Hello,
Thank you for your message. Just to make it clear, do you keep all the script unchanged and you modify only the DGTD simulation region from 2D to 3D?
Is this right? Because I cannot see any change on the script from the screenshot. If you have modified the script, could you please share with me lines that you have modified the script?
Furthermore, due to structure symmetry there is no way to calculate the grating orders for the y-direction. The gratingprojection command requires the period of the grating and the wave vector of the source, when the script reaches on the commands getperiodicity and getsourcedirection, there are no values to retrieve.