pysrw.computations.computeSrWfr

Contents

pysrw.computations.computeSrWfr#

pysrw.computations.computeSrWfr(particleBeam, magnetsContainer, observer, wavelength, relPrec=None, srApprox=None)[source]#

Compute the synchrotron radiation wavefront emitted by a particle travelling along a magnetic structure.

Parameters:
  • particleBeam – particle instance of ParticleBeam.

  • magnetsContainer – container instance of MagnetsContainer.

  • observer – mesh instance of Observer.

  • wavelength – observation wavelength in nanometers.

  • relPrec (optional) – relative precision target for the convergence of the computation. If None, the default value set in CONFIG is used. Defaults to None.

  • calcMeth (optional) – one of the configuration.SR_APPROX approximation methods to use for the computation. If None, the default value set in CONFIG is used. Defaults to None.

Returns:

the calculated wavefront.

Return type:

Wavefront