wpg.generators module

wpg.generators.build_gauss_wavefront(nx, ny, nz, ekev, xMin, xMax, yMin, yMax, tau, sigX, sigY, d2waist, pulseEn=None, pulseRange=None, _mx=None, _my=None)[source]

Build 3D Gaussian beam.

Parameters:
  • nx – Number of point along x-axis
  • ny – Number of point along y-axis
  • nz – Number of point along z-axis (slices)
  • ekev – Energy in kEv
  • xMin – Initial Horizontal Position [m]
  • xMax – Final Horizontal Position [m]
  • yMin – Initial Vertical Position [m]
  • yMax – Final Vertical Position [m]
  • tau – Pulse duration [s]
  • sigX – Horiz. RMS size at Waist [m]
  • sigY – Vert. RMS size at Waist [m]
  • d2waist – Distance to Gaussian waist
  • pulseEn – Energy per Pulse [J]
  • pulseRange – pulse duration range in sigT’s
  • _mx – transverse Gauss-Hermite mode order in horizontal direction
  • _my – transverse Gauss-Hermite mode order in vertical direction
Returns:

wpg.Wavefront structure

wpg.generators.build_gauss_wavefront_xy(nx, ny, ekev, xMin, xMax, yMin, yMax, sigX, sigY, d2waist, xoff=0.0, yoff=0.0, tiltX=0.0, tiltY=0.0, pulseEn=None, pulseTau=None, repRate=None, _mx=None, _my=None)[source]

Build 2D Gaussian beam.

Parameters:
  • nx – Number of point along x-axis
  • ny – Number of point along y-axis
  • nz – Number of point along z-axis (slices)
  • ekev – Energy in kEv
  • xMin – Initial Horizontal Position [m]
  • xMax – Final Horizontal Position [m]
  • yMin – Initial Vertical Position [m]
  • yMax – Final Vertical Position [m]
  • sigX – Horiz. RMS size at Waist [m]
  • sigY – Vert. RMS size at Waist [m]
  • d2waist – distance to Gaussian waist
  • xoff – Horizonal Coordinate of Gaussian Beam Center at Waist [m]
  • yoff – Vertical Coordinate of Gaussian Beam Center at Waist [m]
  • tiltX – Average Angle of Gaussian Beam at Waist in Horizontal plane [rad]
  • tiltY – Average Angle of Gaussian Beam at Waist in Vertical plane [rad]
  • pulseEn – Energy per Pulse [J]
  • pulseTau – Coherence time [s] to get proper BW
  • _mx – transverse Gauss-Hermite mode order in horizontal direction
  • _my – transverse Gauss-Hermite mode order in vertical direction
Returns:

wpg.Wavefront structure

wpg.generators.build_gauss_wavefront_xy_(xoff, yoff, tiltX, tiltY, nx, ny, ekev, xMin, xMax, yMin, yMax, sigX, sigY, d2waist)[source]

This function depricated and will removed in next releases, use build_gauss_wavefront_xy instead.