Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Inputting Complex Number into "Search for Modes Around" through a Method Script
Posted 11 oct. 2021, 09:16 UTC−4 Wave Optics, Simulation Apps, Parameters, Variables, & Functions 1 Reply
Please login with a confirmed email address before reporting spam
Dear all,
I'm trying to write a method that iterates through frequencies in a study. (that uses boudary mode and frequency domain analysis)
With each iteration, the search index needs to be adjusted using the effective index from the previous iteration.
My issue: To update the search index with each iteration I use the following line
model.study("std1").feature("bma").set("shift",Sindex)
The effective index I wish to insert is Sindex, is a double[][] where the 1st element is real, 2nd is imaginary. Check Syntax does not return an error or warning with this line.
When running the method, I get the following error
Failed to run method Proprerty:shift(Search for modes around) 'Search for modes around' is a complex number Expected unit is: .
I cannot find the right documentation to resolve this issue, so any guidance would be much appricated!
Kind regards, Ed