Can light waves be represented as long skinny rays in computer programming?

AI Thread Summary
The discussion focuses on the representation of light rays in computer programming, particularly how to model the behavior of photons as they travel, reflect, and refract. The programmer has successfully depicted light photons as long, skinny lines, with lengths corresponding to half their wavelength, and is exploring whether photons can be represented as arrows with defined start and end points. Responses highlight that ray optics, which simplifies the behavior of light by neglecting diffraction, is a valid approach for modeling light in simulations. The conversation also touches on the importance of accurately reflecting physical laws in simulations for realism. References to optical design handbooks and ray tracing programs are provided for further exploration of the topic.
edguy99
Gold Member
Messages
449
Reaction score
28
I am a computer programmer attempting to represent light rays traveling through the air, bumping into things, reflecting and refracting in some manner as they go through glass or other material.

I have had good luck and the pictures look quite nice representing light photons as long skinny lines whose length is 1/2 the wavelength (ie Red 650 nanometer light is represented as a red line 325 nanometers long, but very, very skinny). They look like light rays that are commonly drawn in pictures. I can turn on a light and have them shoot all over the place.

Regarding the issue of representing the photon as either a wave or a point as it travels though space. My question: Is there a reason that photons are not represented as long skinny rays or arrows with a start and end point that travel at the speed of light?

Thank You
 
Science news on Phys.org
I'm not sure if i understand your question. When you say 'represent' and 'pictures', are you referring to the way things are drawn in diagrams in textbooks or in some form of computer model.

I would think that if you are modeling the classical properties of light (reflecting, refracting e.t.c.), you do not need to consider the particulate nature of light in your model. Photons may be represented as a little dot if you choose to but you still have to draw vectors showing which way they are travelling. A more common way of representing the photon is the wave-packet.

http://www.cartage.org.lb/en/themes/sciences/Physics/QuantumPhysics/ParticlePhysics/pack.gif
 
Last edited by a moderator:
edguy99 said:
I am a computer programmer attempting to represent light rays traveling through the air, bumping into things, reflecting and refracting in some manner as they go through glass or other material.

I have had good luck and the pictures look quite nice representing light photons as long skinny lines whose length is 1/2 the wavelength (ie Red 650 nanometer light is represented as a red line 325 nanometers long, but very, very skinny). They look like light rays that are commonly drawn in pictures. I can turn on a light and have them shoot all over the place.

Regarding the issue of representing the photon as either a wave or a point as it travels though space. My question: Is there a reason that photons are not represented as long skinny rays or arrows with a start and end point that travel at the speed of light?

Thank You

Ray optics, which is essentially what you are re-inventing, is another type of approximation for optical systems. Ray optics assumes that rays begin and end (and can be focused to) infinitesimal points. That is, diffraction is neglected. Typically, the trade-off comes by representing the angle that the ray makes with the optical axis as a sum (approximation to the sine function)- thus, there is first-order ray optics, (sin x ~x), third order, fifth, etc.
 
jaseh86 said:
I'm not sure if i understand your question. When you say 'represent' and 'pictures', are you referring to the way things are drawn in diagrams in textbooks or in some form of computer model.

I would think that if you are modeling the classical properties of light (reflecting, refracting e.t.c.), you do not need to consider the particulate nature of light in your model. Photons may be represented as a little dot if you choose to but you still have to draw vectors showing which way they are travelling. A more common way of representing the photon is the wave-packet.

http://www.cartage.org.lb/en/themes/sciences/Physics/QuantumPhysics/ParticlePhysics/pack.gif

Diagrams and models. The better the objects reflect the underlying physics, the more useful and understandable they are, especially in a simulation where they move around and you have to keep track of things over time. Gravity simulations are easy to do and they "look and feel" real since they follow the laws of physics.

Thank you for the sample.

Ray optics, which is essentially what you are re-inventing, is another type of approximation for optical systems. Ray optics assumes that rays begin and end (and can be focused to) infinitesimal points. That is, diffraction is neglected. Typically, the trade-off comes by representing the angle that the ray makes with the optical axis as a sum (approximation to the sine function)- thus, there is first-order ray optics, (sin x ~x), third order, fifth, etc.


Also, thanks for the hint on ray optics and diffraction. Do you know of any good reference material on the subject?
 
Last edited by a moderator:
The standard handbook (available on line, for free) is the MIL-HDBK-141. It's the US military handbook for optical design and covers all the details. This is the link I have:

http://www.azmackes.net/astronomy/mil_hdbk_141/

But the site is acting up, not sure if it's gone for good.

There's also a lot of ray tracing programs out there- Zemax, Code V, OSLO, etc. Their website may have some FAQ type information available for you.
 
Last edited by a moderator:
Thread 'A quartet of epi-illumination methods'
Well, it took almost 20 years (!!!), but I finally obtained a set of epi-phase microscope objectives (Zeiss). The principles of epi-phase contrast is nearly identical to transillumination phase contrast, but the phase ring is a 1/8 wave retarder rather than a 1/4 wave retarder (because with epi-illumination, the light passes through the ring twice). This method was popular only for a very short period of time before epi-DIC (differential interference contrast) became widely available. So...
I am currently undertaking a research internship where I am modelling the heating of silicon wafers with a 515 nm femtosecond laser. In order to increase the absorption of the laser into the oxide layer on top of the wafer it was suggested we use gold nanoparticles. I was tasked with modelling the optical properties of a 5nm gold nanoparticle, in particular the absorption cross section, using COMSOL Multiphysics. My model seems to be getting correct values for the absorption coefficient and...

Similar threads

Replies
207
Views
12K
Replies
2
Views
3K
Replies
1
Views
3K
Replies
2
Views
1K
Replies
12
Views
5K
Replies
4
Views
2K
Replies
1
Views
1K
Back
Top