Simulation of self-reproducing field pattern in the laser resonant cavity.
The process of the laser propagating distance 'z' once in the resonant cavity can be described by the Fresnel diffraction function:
And it can be rewritten in to a convolution form:
In this case, if the size of the image is large enough, the diffraction function can be approximated by discrete convolution.
Meanwhile, due to the size of the reflector, the process of passing through the reflector can be considered as passing through a spatial filter. And the reflector is essentially a phase converter, whose transformation function is:
The above are all the processes that can be experienced by laser propagation in the resonant cavity.
The simplified structure of resonant cavity:
Simulation results of the transverse mode in a resonant cavity of a planar square mirror with an initial light field in the shape of a triangle:
# Necessary
numpy
scipy
matplotlib
# Optional (For Making GIFs)
cv2
imageio