pysrw.computations.computeGsnBeamWfrMultiProcess#
- pysrw.computations.computeGsnBeamWfrMultiProcess(numCores, gaussianBeam, observer, wavelength)[source]#
Compute the wavefront of a coherent Gaussian beam. Multiprocessing version of
computeGsnBeamWfr()
.- Parameters:
numCores – the number of processes to split the computation into. Maximum value limited to the CPU count of the machine.
gaussianBeam – source instance of
GaussianBeam
.observer – mesh instance of
Observer
.wavelength – observation wavelength in nanometers.
- Returns:
the calculated wavefront.
- Return type: