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 Unable to get the result from mode expansion Reply To: Unable to get the result from mode expansion

Amrita Pati
Ansys Employee

Hi Peng,

If you wish to do it by script, in your file adding sweep.lsf, I would suggest you to replace Line 36 to 41 by the following code and then run the script:

sweep_result = struct;
sweep_result.Name = “fom”;
sweep_result.Result = “::model::fom_exp::expansion for fom”;
addsweepresult(“sweep source position”,sweep_result);
runsweep(“sweep source position”);
result = getsweepresult(“sweep source position”,”fom”);
T = result.T_backward;

Please let me know what happens when you do this. Thank you!


Regards,
Amrita

 

 

 

[bingo_chatbox]