gram

lenstest.foucault.gram(D, RoC, x_offset, z_offset, conic=0, phi=0, N=100000, invert=False, on_grid=False, A=0, mask=False)[source]

Create points that miss the knife edge.

This assumes that the point source of light is located at the center of the mirror madius of curvature, RoC.

The knife edge is displaced from the center of the mirror by x_offset.

The knife edge is oriented its edge is vertical when phi=0.

The conic section is specified by conic:

conic = ∞ for surface that is flat conic > 0 for surface that is an oblate spheroid conic = 0 for surface that is a sphere 0<conic<-1 for surface that is a prolate spheroid conic = -1 for surface that is a paraboloid conic < -1 for surface that is a hyperboloid

Parameters:
  • D – diameter of mirror [mm]

  • RoC – radius of curvature of mirror [mm]

  • x_offset – transverse knife edge displacement from optical axis [mm]

  • z_offset – axial knife edge offset from paraxial focus [mm]

  • conic – conic constant or Schwartzchild constant [-]

  • phi – CCW rotation of knife edge from vertical [radians]

  • N – number of points to generate

  • invert – boolean to draw dark or light areas

  • on_grid – if False generate points on a grid

  • mask – show Ronchi ruling without lens/mirror effects

  • A – spherical aberration [1/mm³]

Returns:

x, y – masked listed of points to plot