Skip to main content
Solved

circular grid sag


Alicia

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

Best answer by Csilla Timar-Fulep

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

View original
Did this topic help you find an answer to your question?

3 replies

Csilla Timar-Fulep
Zemax Staff
Forum|alt.badge.img+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


Mark.Nicholson
Luminary
Forum|alt.badge.img+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.  


Alicia
  • Author
  • Infrared
  • 6 replies
  • June 22, 2022

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

 

Kind regards,

Alicia


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings