Ansys Learning Forum › Forums › Discuss Simulation › Photonics › Periodic boundary condition in two dimension › Reply To: Periodic boundary condition in two dimension
Hello and thank you for contacting us.
Â
In order to add periods in both x and y direction, you need to modify the script as following (indicative script that includes only G_matrix_export but can be used for Pheat_matrix_export result too):
Â
Â
This means that first you need to calculate the G_matrix_export result and x_export for the number of periods in x direction and then use this result to calculate the G_matrix_export result and x_export for the number of periods in y direction. You can also use a different number of periods in x and y direction by setting two different parameters.
Â
Best regards,
Afroditi