Optics and Ray tracing

Makes sample optics: mirror, facet, and facet ensemble.

  1. Draws the optics

  2. Performs ray tracing analysis on the optics and a notional receiver

  3. Plots sun disc image on receiver for

  4. Plots ensquared energy plot

example.csp.example_optics_and_ray_tracing.define_facet(focal_length: float) Facet

Creates facet containing a parametric mirror with given focal length

example.csp.example_optics_and_ray_tracing.define_mirror(focal_length: float) MirrorParametric

Creates parametric mirror with given focal length

example.csp.example_optics_and_ray_tracing.define_mirror_array(focal_length: float) FacetEnsemble

Creates an array of on-axis canted facets with the given focal length

example.csp.example_optics_and_ray_tracing.plot_ray_trace(scene: Scene, image: ndarray, trace: RayTrace, title: str, plot_rays: bool = False) None

Plots and saves images

example.csp.example_optics_and_ray_tracing.visualize_facet() None

Draws image of, plots slope, and ray traces facet

example.csp.example_optics_and_ray_tracing.visualize_mirror() None

Draws image of, plots slope, and ray traces mirror

example.csp.example_optics_and_ray_tracing.visualize_mirror_array() None

Draws image of, plots slope, and ray traces mirror_array

Foundation Classes and Ray Tracing