Skip to main content

I am thinking about modeling an optical system (with lenses and mirrors) with inputs of different location (x,y) and pointing angle (CRA). Thinking about using a txt file as input, do ray tracing with ZPL, and output as txt as well. Since the array size is big (~250x2), I am wondering what is the best way to assign field or CRA based on each element in the object array (what I can think of now is to add a coordinate break between object and my optical system, assign x decenter, y decenter based on the location of each element, and assign x tilt, y tilt based on the pointing direction of each element in the array with SURP, but is this the best way?) The same applies to output, how do I export the output beam angle (RAYTRACE and RAYL, RAYM, RAYX, RAYY?, is this the CRA?)

Is there a MACRO that I could refer to as a starting point?

Thanks very much and look forward to any advice.

Be the first to reply!

Reply