Solved

Modeling a Diffractive lens in a sequential mode with a DLL

  • 21 June 2022
  • 2 replies
  • 234 views

Hello,

I would like to know how can I create a diffractive lens in a sequential mode using a dll ? 

 

Thank you.

 

icon

Best answer by Sandrine Auriol 24 June 2022, 12:24

View original

2 replies

Userlevel 7
Badge +2

Hi Samia,

 

This is quite a general question. I’d recommend reading about the DLL knowledgebase articles here to get familiar with this feature. Then, you can browse the sample files in you {Documents}\Zemax\DLL\Surfaces. If you have an equation which describes how the rays bend upon interacting with your custom surface, it should be possible.

Take care,

 

David

Userlevel 6
Badge +2

Some good references are: https://support.zemax.com/hc/en-us/articles/1500005578162-Custom-DLLs-in-OpticStudio-An-overview-of-user-defined-surfaces-objects-and-other-DLL-types

And check this sample file: "{Zemax}\DLL\Surfaces\us_grate.c"

We also had an “Ask an engineer” event about DLLs lately. The recording is available in the post: 

 

Reply