Skip to main content
Solved

GGD input file

  • July 26, 2019
  • 5 replies
  • 313 views

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

5 replies

  • Zemax Staff
  • 14 replies
  • Answer
  • July 28, 2019

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
  • Author
  • Infrared
  • 5 replies
  • July 29, 2019
Hi Mark,
 
Yes! Now it works.  Thank you so much for your great help and support.
 
Best,
Hooman

  • Zemax Staff
  • 14 replies
  • July 30, 2019

My pleasure :-)


Michael Cheng
Zemax Staff
Forum|alt.badge.img+2
  • Zemax Staff
  • 143 replies
  • August 6, 2019

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.