I am attempting to write a User defined operand that calculates reflections off of optical elements.
I have been told by someone else very knowledgeable in these sorts of things that the GPIM operand does something similar, in that it “hacks” a double pass calculation in OpticStudio without actually requiring the user to have a double pass system set up.
I would like to be able to do the same thing in my user defined operand, but am unsure how to do it like GPIM does it. Would it be possible for somebody to shed some light on how to “hack” a double pass computation like GPIM, and if it is even possible to do through the zos-api syntax?
Thanks!