radiasoft / rslaser_old

Integrated modeling of CPA crystal-based laser amplifiers
Apache License 2.0
1 stars 1 forks source link

89 improve gsn creation function laserpulse class #90

Closed nickgoldring closed 1 year ago

nickgoldring commented 1 year ago

Main improvement is simplification of the Gaussian creation function via SRW called in LaserPulseSlice class. Users may now directly specify a number of mesh points. Backward propagation is no longer necessary. The improved Gaussian creation function, createGsnSrcSRW(), resides in srwl_uti_data.py and is called within the LaserPulseSlice class in pulse.py. Several parameters in _ENVELOPE_DEFAULTShave been shifted to _LASER_PULSE_DEFAULTS in an effort to increase consistency. This breaks the creation of the laser envelope within the LaserPulse class. Cleaning up the relationship to the laser envelope will be completed in future iterations of the library. An example notebook demonstrating use of the new LaserPulse class can be found here: notebook