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
CONFIGis used. Defaults to None.calcMeth (optional) – one of the
configuration.SR_APPROXapproximation methods to use for the computation. If None, the default value set inCONFIGis used. Defaults to None.
- Returns:
the calculated wavefront.
- Return type: