![]() ![]() ![]() You will be asked for the macro number, which corrsponds to the value you entered for '#'. Once saved, you will enter it into the Merit Function with the optimization operand ZPLM. However, how do I use that in the merit funtion editor now? Would someone be able to provide me with a working example of such a merit function to get this ZPLM implemented?įor a full description of how to use a ZPLM operand, you should check out the Knowledgebase article ' Optimization using a ZPL Macro: the ZPLM operand.'Īs you already have the contents of the ZPL, you can paste them into a new macro and save it with the title 'ZPL#' where '#' is the number of the operand: So now this returns the rays hitting the detector under consideration of H4, correct? ![]() So I specify my detector in H(x) and then clear all detectors, run a raytrace with the filter string applied (in this case hit surface 4) and point it back to the detector. Therefore Zemax provided some help a while ago in form of this ZPLM operand While this is easily done by filter strings in a simple detector view, I was unsure on how to implement this in the optimization. I need to write a merit funtion that maximizes flux on the detector - but only for rays hitting a specific surface in between source and detector. However, I am not very used to any optimization procedures, so any help will be appreciated.Īssuming I have a source and a detector, and some surfaces inbetween in a non-sequential setting. I guess my question is fairly straight forward.
0 Comments
Leave a Reply. |