DeformableMirror

class hcipy.optics.DeformableMirror(influence_functions)

Bases: hcipy.optics.optical_element.OpticalElement

A deformable mirror using influence functions.

This class does not contain any temporal simulation (ie. settling time), and assumes that there is no crosstalk between actuators.

Parameters
influence_functionsModeBasis

The influence function for each of the actuators.

Attributes Summary

actuators

influence_functions

The influence function for each of the actuators of this deformable mirror.

num_actuators

opd

The optical path difference in meters that this deformable mirror induces.

surface

The surface of the deformable mirror in meters.

Methods Summary

backward(self, wavefront)

Propagate a wavefront backwards through the deformable mirror.

flatten(self)

Flatten the DM by setting all actuators to zero.

forward(self, wavefront)

Propagate a wavefront through the deformable mirror.

phase_for(self, wavelength)

Get the phase in radians that is added to a wavefront with a specified wavelength.

random(self, rms)

Set the dm actuators with random white noise of a certain rms.

Attributes Documentation

actuators
influence_functions

The influence function for each of the actuators of this deformable mirror.

num_actuators
opd

The optical path difference in meters that this deformable mirror induces.

surface

The surface of the deformable mirror in meters.

Methods Documentation

backward(self, wavefront)

Propagate a wavefront backwards through the deformable mirror.

Parameters
wavefrontWavefront

The incoming wavefront.

Returns
Wavefront

The reflected wavefront.

flatten(self)

Flatten the DM by setting all actuators to zero.

forward(self, wavefront)

Propagate a wavefront through the deformable mirror.

Parameters
wavefrontWavefront

The incoming wavefront.

Returns
Wavefront

The reflected wavefront.

phase_for(self, wavelength)

Get the phase in radians that is added to a wavefront with a specified wavelength.

Parameters
wavelengthscalar

The wavelength at which to calculate the phase deformation.

Returns
Field

The calculated phase deformation.

random(self, rms)

Set the dm actuators with random white noise of a certain rms.

Parameters
rmsscalar

The dm surface rms.