Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Implementation of Raytrace Support

The Lens class provides three functions to represent the lens potential \psi^.

For subclasses of PsiFunctionLens each of these are hard-coded for the specific lens model. For SampledPsiFunctionLens each function looks up the value in a sampling matrix which is computed when the lens is instantiated. The lens object is intantiated with an instance of PsiFunctionLens which is used for the sampling. The derivates are computed with a Sobel filter.

The Raytrace Model depends on the last two to compute the distortion.