pyoptools.wavefront.field.fields module

pyoptools.wavefront.field.fields.plane_wave()

Function that returns a plane wave (Field object) that describes a plane wave

** ARGUMENTS **

n Tuple (nx,ny,nz) indicating a vector normal to the plane wave
l Wavelength of the plane wave (usually given in microns)
size Tuple (sx,sy) indicating the physical size of the window used where the field is defined. It must have the same units as l
samples Tuple (nx,ny) indicating the number of samples to be used when creating the plane wave
a Amplitude of the plane wave
ph Phase of the plane wave at the origin (center of the sampling)
pyoptools.wavefront.field.fields.spherical_wave()

Function that returns a spherical wave (Field instance)

The spherical wave returned, is evaluated in the plane Z=0, assuming the source point at the coordinates X,Y,Z, given by ‘’o’’. If o is a number, and not a vector, the source point location is the point (0,0,o)

** Arguments: **

o Location of the point source, assuming that the observation plane is given by Z=0
l Wave length of the spherical wave, usually given in microns
size Tuple (sx,sy) indicating the physical size of the window used where the field is defined. It must have the same units as l
samples Tuple (nx,ny) indicating the number of samples to be used when creating the plane wave
a Amplitude of the plane wave
ph Phase of the spherical wave at the origin (center of the sampling)

Note

If z is positive, the spherical wave generated will be convergent when the wave is propagating in the positive direction of the Z axis. If z is negative, the wave will be divergent.