DeformableMirror

class hcipy.optics.DeformableMirror(influence_functions)[source]

Bases: 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(wavefront)

Propagate a wavefront backwards through the deformable mirror.

flatten()

Flatten the DM by setting all actuators to zero.

forward(wavefront)

Propagate a wavefront through the deformable mirror.

phase_for(wavelength)

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

random(rms[, seed])

Set the DM actuators to independent, zero-mean Gaussian noise.

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(wavefront)[source]

Propagate a wavefront backwards through the deformable mirror.

Parameters:
wavefrontWavefront

The incoming wavefront.

Returns:
Wavefront

The reflected wavefront.

flatten()[source]

Flatten the DM by setting all actuators to zero.

forward(wavefront)[source]

Propagate a wavefront through the deformable mirror.

Parameters:
wavefrontWavefront

The incoming wavefront.

Returns:
Wavefront

The reflected wavefront.

phase_for(wavelength)[source]

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(rms, seed=None)[source]

Set the DM actuators to independent, zero-mean Gaussian noise.

Parameters:
rmsscalar or array_like

The standard deviation of the actuator amplitudes. If this is a scalar, the same value is used for all actuators. Otherwise, supply one value per actuator. This does not specify the RMS of the resulting mirror surface.

seedNone, int, array of ints, SeedSequence, BitGenerator, Generator

A seed for the random noise. If a Generator or BitGenerator is supplied, its state is advanced by the draw. If None (the default), use NumPy’s global random state for compatibility with numpy.random.seed(). An explicit seed does not affect that global state.