Ray Tracing
SLAC and Stanford University Software Notices:
Introduction
Starting
"running setup"
To start a raytracing worksheet begin with the command with(RayTracing) . The restart command is at the top of this page so I can
clear all variables and start fresh without shutting down Maple.
The first thing you have to do when raytracing is define the left and right lens surfaces. This is done by specifying two functions, the left hand lens surface is specified by the function and the right hand side by . Note that the variable y runs along the vertical axis and the function gives the set-back of the lens from the origin of the horizontal axis. Once we have them we can plot the lens by plotting two curves as shown below.
Examples
Later we want to deal with non-concentric lenses. This is accomplished below. Eventually we will define to be and then we can retrace
everything to see the effects.
The command RayTrace(p0,y_initial,index_of_refraction) to trace a single ray. The first argument to the function is the 2-d vector specifying the
starting point of the ray. The syntax <x0,y0> is Maple's shorthand way of specifying a vector. The next argument is the height at which you want
the first ray to hit the first surface of the lens. The last argument is the index of refraction for Joel's material.
The plot below is the same but I have scaled it, and panned around to display the point of intersection and use Maple's ability to
get coordinates off the plot to calculate the point-spread for a point source at infinity.
The width of the spot at its minimum is 0.015mm, or 15 microns. This is the best resolution you will get with a lens masked to a 3mm diameter. It is about
twice as bad if we go out to 5mm diameter masking. One can also raytrace the imaging of point sources at a finite distance from the lens on axis.
The point spread for the source at a finite distance is 0.017mm or 17microns. Not much worse. Some more traces for on axis points
are shown below. Note that the image moves toward the focal point as the source moves further away.
Now we get to have some fun. What is the point spread for the image of an off-axis point? Scaling and measuring we get 0.018 mm. Worse but not bad.
Note the image is off axis. From this we get the magnification (or demagnification of a distant object by the lens.)
Some more off axis plots. As we get more off axis the point spread gets only marginally worse 0.02mm. This is not the cause of our fuzziness.
Lets now redefine so as to do some non-concentric problems.
Let's begin with a point source at infinity.
Legal Notice: The copyright for this application is owned by the author(s). Neither Maplesoft nor the author are responsible for any errors contained within and are not liable for any damages resulting from the use of this material. This application is intended for non-commercial, non-profit use only. Contact the author for permission if you wish to use this application in for-profit activities.