Skip to main content
Solved

DIfference between NSRA operand 12 and 13: Phase of vs Phase at


Bozkov

What is the difference between the operands NSRA 12 and 13? The manual says one is Phase of and the other one is Phase at.

Can you tell me whats the difference?

Best answer by MichaelH

Hi Bozkov,

tl;dr 

Data 13 is very close to the optical path length and 99% of the time you’d be using this and ignoring Data 12

details

  • Data 12 (phase_of): additional phase added by a special surface/object in non-sequential mode (can use on any Object)
  • Data 13 (phase_at): optical path length (OPL) referenced to the center of the pixel including additional phase coming from Data 12 (can only be used on a Detector object)

In sequential mode, you can add any amount of arbitrary phase at any surface and this is translated into additional “bending” at that surface.   In non-sequential mode, rays for the most part only know how to “bend” according to Snell’s Law.  There are a handful of Objects such as the Binary 1, Binary 2 and Binary 2A which impart additional phase to the ray and cause the ray to bend more and Data 12 reflects this additional phase.

If the ray hits directly in the middle of the pixel on the Detector, then Data 13 is exactly equal to the OPL. 

The OPL takes into account:

  • Physical path the ray takes (for non-Grin surfaces, this would just be the 3D distance formula for 2 consecutive segment’s XYZ coordinates)
  • Refract index for each segment
  • Normalized to waves by multiplying by 2pi

If the ray doesn’t hit the middle of the pixel, then Data 13 will also take into account the plane wave offset from the wavefront (surface perpendicular to the ray; orange below) and the pixel’s center (arrow to the right):

This offset (dashed green line) is simply the shortest path from the pixel center to the wavefront, namely sin(a) * y * 2 *pi / wllu (where wllu is the wavelength in lens units).  The reason why this offset is needed is a pixel on a Detector acts as a finite binned well but all coherent calculations are corrected to occur at the middle of the pixel (common reference).  This way, the destructive and constructive nature of the coherent light can be calculated correctly.

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

2 replies

MichaelH
Ansys Staff
Forum|alt.badge.img+2
  • Ansys Staff
  • 355 replies
  • Answer
  • April 7, 2025

Hi Bozkov,

tl;dr 

Data 13 is very close to the optical path length and 99% of the time you’d be using this and ignoring Data 12

details

  • Data 12 (phase_of): additional phase added by a special surface/object in non-sequential mode (can use on any Object)
  • Data 13 (phase_at): optical path length (OPL) referenced to the center of the pixel including additional phase coming from Data 12 (can only be used on a Detector object)

In sequential mode, you can add any amount of arbitrary phase at any surface and this is translated into additional “bending” at that surface.   In non-sequential mode, rays for the most part only know how to “bend” according to Snell’s Law.  There are a handful of Objects such as the Binary 1, Binary 2 and Binary 2A which impart additional phase to the ray and cause the ray to bend more and Data 12 reflects this additional phase.

If the ray hits directly in the middle of the pixel on the Detector, then Data 13 is exactly equal to the OPL. 

The OPL takes into account:

  • Physical path the ray takes (for non-Grin surfaces, this would just be the 3D distance formula for 2 consecutive segment’s XYZ coordinates)
  • Refract index for each segment
  • Normalized to waves by multiplying by 2pi

If the ray doesn’t hit the middle of the pixel, then Data 13 will also take into account the plane wave offset from the wavefront (surface perpendicular to the ray; orange below) and the pixel’s center (arrow to the right):

This offset (dashed green line) is simply the shortest path from the pixel center to the wavefront, namely sin(a) * y * 2 *pi / wllu (where wllu is the wavelength in lens units).  The reason why this offset is needed is a pixel on a Detector acts as a finite binned well but all coherent calculations are corrected to occur at the middle of the pixel (common reference).  This way, the destructive and constructive nature of the coherent light can be calculated correctly.


Bozkov
  • Author
  • Monochrome
  • 3 replies
  • April 8, 2025

Thank you very much Michael


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