Solved

circular grid sag

  • 15 June 2022
  • 3 replies
  • 104 views

Hello!

 

I want to import the data of a rotationally symmetric contact lens to Zemax OpticStudio, and I thought about ding it with the grid sag surface. Does anyone know if it is possible to create a circular grid surface in the grid sag surface type, instead of the square one given by default? It would be much easier for me

Thank you very much,

Alicia

icon

Best answer by Csilla Timar-Fulep 20 June 2022, 16:34

View original

3 replies

Userlevel 5
Badge +2

Hello Alicia,

Thanks for your question here on the Community forums!

Unfortunately, currently, the data input for the Grid Sag surface type is limited to an evenly spaced rectangular array of sag points.

The proper file format is always as follows:

nx ny delx dely unitflag xdec ydec z dz/dx dz/dy d2z/dxdy nodata

For more details about the formatting, please take a look at the Help files at:
The Setup Tab > Editors Group (Setup Tab) > Lens Data Editor > Sequential Surfaces (lens data editor) > Grid Sag

That said, you may apply a circular aperture in OpticStudio, or zero out all the data points outside of the region of interest directly in the .DAT file, if it is necessary for your application.

You may find more details about how to create the required .DAT files programmatically in this knowledgebase article:
How to write a Grid Sag DAT file programmatically – Knowledgebase (zemax.com)

If you have any further questions, please do not hesitate to ask!

Best,
Csilla

Userlevel 7
Badge +3

That’s true of the Grid Sag surface, but if you have a rotationally symmetric surface you can also use the Cubic Spline and Extended Cubic Spline surfaces.  

Thank you very much for your answers, I will try to use a surface different from the gird sag then

 

Kind regards,

Alicia

Reply