Grid#

class lasy.utils.grid.Grid(dim, lo, hi, npoints, n_azimuthal_modes=None)[source]#

Store an array (typically the envelope) and corresponding metadata.

Parameters:
dimstring

Dimensionality of the array. Options are:

  • 'xyt': The laser pulse is represented on a 3D grid:

    Cartesian (x,y) transversely, and temporal (t) longitudinally.

  • 'rt'The laser pulse is represented on a 2D grid:

    Cylindrical (r) transversely, and temporal (t) longitudinally.

lo, hilist of scalars

Lower and higher end of the physical domain. One element per direction (2 for dim='rt', 3 for dim='xyt')

npointstuple of int

Number of points in each direction. One element per direction (2 for dim='rt', 3 for dim='xyt') For the moment, the lower end is assumed to be (0,0) in rt and (0,0,0) in xyt

n_azimuthal_modesint (optional)

Only used if dim is 'rt'. The number of azimuthal modes used in order to represent the laser field.