pysrw.lib.srwlib.SRWLOptWG

pysrw.lib.srwlib.SRWLOptWG#

class pysrw.lib.srwlib.SRWLOptWG(_L=1, _Dx=0.01, _Dy=0.01, _x=0, _y=0)[source]#

Bases: SRWLOpt

Optical Element: Waveguide

__init__(_L=1, _Dx=0.01, _Dy=0.01, _x=0, _y=0)[source]#
Parameters:
  • _L – length [m]

  • _Dx – horizontal transverse dimension [m]

  • _Dy – vertical transverse dimension [m]

  • _x – horizontal transverse coordinate of center [m]

  • _y – vertical transverse coordinate of center [m]

Methods

__init__([_L, _Dx, _Dy, _x, _y])

param _L:

length [m]

get_orient([_e])

randomize()

Randomizes parameters of optical element according to self.RandParam to simulate e.g. impact of vibrations on coherence (in P-C calculations).

set_rand_par(_rand_par)

Sets list of params to be eventually randomized in some types of calculations :param _rand_par: list of params to be randomized; each element of this list should be: ['param_name', val_avg, val_range, meth]