Skip to main content
Solved

GGD input file


Hooman.Akhavan

Hi,

Our team tried hard today to input a GGD file (placed in Glasscat folder) which contains the 3D index map of one of our desired gradient index lenses in order to trace the rays by Zemax.  While the exisiting sample file "Sample.GGD" in Glasscat with Grid Gradient surface type works perfectly, none of our own generated files works.  When updating  with our own GGD file, we always get this error message: "Internal Error! nx, ny, nz Sizes are incorrect".

Attached you will find one of our GGD files.  We do not have any clue how to move forward with this problem now and appreciate your great help.

Best,

Hooman Akhavan

Voxtel Corporation, OR USA

Best answer by markgnicholson

Hi Hooman,

The NX, NY and NZ values are the number of x, y and z points in the file, respectively. These values must be greater than 5. In your file, NZ=3.

- Mark

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

5 replies

Hi Hooman,

The NX, NY and NZ values are the number of x, y and z points in the file, respectively. These values must be greater than 5. In your file, NZ=3.

- Mark


Hooman.Akhavan
Hi Mark,
 
Yes! Now it works.  Thank you so much for your great help and support.
 
Best,
Hooman

My pleasure :-)


Michael Cheng
Zemax Staff
Forum|alt.badge.img+2

This may be late, but I would like to share a macro to generate GGD file based on your equation.  I add many comments in the macro to explain how to use it. Hope this helps.

 


Forum|alt.badge.img+2

Hi everyone! I have moved Michael’s ZPL macro to the Code Exchange for more clarity. It is available for all users.

 


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