Solved

Diffractive macro DOESAG.zpl is not available

  • 19 August 2021
  • 5 replies
  • 211 views

  • Monochrome
  • 2 replies

Hi,

I am unable to find DOESAG.zpl macro for getting the sag values for the diffractive aspheric surface. Earlier it was available in the knowledge base but now that is also not there. 

Can I get this macro as it is very useful to view the steps of diffractive surface and surface sag data

Regards

J Himavanth kumar

icon

Best answer by Chris Normanshire 19 August 2021, 10:33

View original

5 replies

Userlevel 3
Badge +2

Hi,

You can find the DOESAG.ZPL macro attached to this Knowledgebase article How to calculate the sag of a diffractive optical element with a macro – Knowledgebase (zemax.com). Let us know if you have any problems though.

Thanks,

Chris

 

Thank you chris ,

I got it

Badge

Dear 

I wonder DOESAG.zpl macro works correctly. When I compare sag of a binary2 surface using surface phase crosssection in analysis and DOESAG.zpl macro, the results are different. Could you check whether this macro is correct to calculate phase and sag? 

Badge

Dear 

 

Badge

Dear 

Sorry, DOESAG.zpl is correct. this macro shows sag value from DOE vertex. the result from Sag = (phase from Surface phase crossection) x (step height) shows the value from DOE base surface. so, two result are the same.

Reply