Skip to main content
Question

How do I know total number of rays in the new ray file?

  • November 18, 2024
  • 5 replies
  • 76 views

jsung

As per title. I’m not sure if this was asked and answered before.

Is there easy way to figure out total ray numbers of the ray file before tracing it?

5 replies

David
Luminary
Forum|alt.badge.img+4
  • Luminary
  • 336 replies
  • November 19, 2024

I am not on the current release. But in past releases, if you enter a number of analysis rays greater than the number in the file, the entry will default to the total number of rays in the file. Below the file contains 1E6 rays, but I entered 1E15 as a number well over any reasonable value. If you want to trace fewer rays, it is important to set Randomize? to 1, since many ray files contain rays in some systematic order.

 


jsung
  • Author
  • Visible
  • 25 replies
  • November 19, 2024

Thanks David.

That’s what I thought as the only way to know, keep increasing the analysis rays till it’s maxed out.

Yes, I always have to check the randomize column to make sure it’s set to 1.


David
Luminary
Forum|alt.badge.img+4
  • Luminary
  • 336 replies
  • November 19, 2024

You don’t have to keep increasing the analysis rays. Just try to enter an impossibly high number and the entered value will default to the total number of rays in the file. 😀


David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1085 replies
  • November 21, 2024

The Help File for the Binary Source File Format can help to provide a lower bound as well 😋

Take care,

 

David


jsung
  • Author
  • Visible
  • 25 replies
  • November 21, 2024

Yes, I meant increasing by factor of 10, not little by little.

Good to know max possible in Zemax is 4B rays.

Another good indicator seems to be the lumen in file is smaller than total value when analysis rays is smaller number than the max number in file.


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