Ansys Learning Forum › Forums › Discuss Simulation › Photonics › Arbitrary sign for eigen mode › Reply To: Arbitrary sign for eigen mode
March 22, 2024 at 9:53 pm
amitrotem2
Subscriber
Sorry, the chat does somthing to '<' followed by 'k' sign and showed only this 'if (1.5}'
Is that what you commented out?
I reverse the direction of ports 3 and 4.
for (k=0:K){
addport();
set(“x”, k*x_shift);
if (1.5 < k){set(“direction”, “Backward”);}
}