spipy-blog logo spipy-blog

simulate.sim_adu

# simulation parameters
- 'detd' : float, distance between sample and detector [unit : mm], default=200.0

- 'lambda' : float, wave length of laser [unit : angstrom], default=2.5

- 'detsize' : int list, detector size in width and height [unit : pixel], default=[128,128]

- 'detcenter' : float list, detector center location [Cx,Cy] [unit : pixel], default=None and uses geometry center

- 'pixsize' : float, pixel length [unit : mm], default=0.3

- 'stoprad' : int, radius of a circle region at the center of pattern that to be masked out [unit : pixel], default=0

- 'polarization' : correction due to incident beam polarization, value from 'x', 'y' or 'none', default=None

- 'num_data' : number of patterns to generate, default=100

- 'fluence' : laser fluence [unit : photons/pulse], usually 1.0e14 ~ 1.0e16 is reasonable for most situations, default=1.5e11

- 'photons' : bool, generate photon patterns (True) or adu patterns without poisson noise (False), default=False

- 'absorption' : bool, whether consider photon absorption, default=True

- 'adu_per_eV' : float, detector ADU of 1eV energy, default=0.001

- 'phy.scatter_factor' : bool, whether to consider scattering factors in atomic diffraction, default=True

- 'phy.b_factor' : float, B-factor value to describe atom displacement in atomic diffraction [unit : angstrom^2], default=20.0, displacement = sqrt( B_factor / 79.0 )

- 'phy.ram_first' : bool, whether to save memory while running atomic diffraction simulation, default=True

- 'phy.projection' : bool, whether to genrate projections of the sample at each orientation in atomic diffraction, default=True