Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

Ansys Learning Forum Forums Discuss Simulation Photonics Arbitrary sign for eigen mode Reply To: Arbitrary sign for eigen mode

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”);}
}

 

[bingo_chatbox]