stemtool.sim package

Submodules

stemtool.sim.multislice module

stemtool.sim.multislice.FourierCalib(calibration, sizebeam)[source]
stemtool.sim.multislice.FourierCoords(calibration, sizebeam)[source]
stemtool.sim.multislice.aberration(fourier_coord, wavelength_ang, defocus=0, c3=0, c5=0)[source]
stemtool.sim.multislice.atomic_potential(atom_no, pixel_size, sampling=16, potential_extent=4, datafile='Kirkland_Potentials.npy')[source]

Calculate the projected potential of a single atom

Parameters:
  • atom_no (int) – Atomic number of the atom whose potential is being calculated.
  • pixel_size (float) – Real space pixel size
  • datafile (string) – Load the location of the npy file of the Kirkland scattering factors
  • sampling (int, float) – Supersampling factor for increased accuracy. Matters more with big pixel sizes. The default value is 16.
  • potential_extent (float) – Distance in angstroms from atom center to which the projected potential is calculated. The default value is 4 angstroms.
Returns:

potential – Projected potential matrix

Return type:

ndarray

Notes

We calculate the projected screened potential of an atom using the Kirkland formula. Keep in mind however that this potential is for independent atoms only! No charge distribution between atoms occure here.

References

Kirkland EJ. Advanced computing in electron microscopy. Springer Science & Business Media; 2010 Aug 12.

Authors:

Debangshu Mukherjee <mukherjeed@ornl.gov>

stemtool.sim.multislice.find_uc_pos(atom_pos, cell_dim)[source]
stemtool.sim.multislice.get_number_cells(miller_dir, length, cell_dim)[source]
stemtool.sim.multislice.make_probe(aperture, voltage, image_size, calibration_pm, defocus=0, c3=0, c5=0)[source]

This calculates an electron probe based on the size and the estimated Fourier co-ordinates with the option of adding spherical aberration in the form of defocus, C3 and C5

stemtool.sim.multislice.miller_inverse(miller)[source]
stemtool.sim.multislice.slabbing_2D(miller_dir, no_cells, max_hdist)[source]
stemtool.sim.multislice.wavelength_ang(voltage_kV)[source]

Calculates the relativistic electron wavelength in angstroms based on the microscope accelerating voltage

Parameters:voltage_kV (float) – microscope operating voltage in kilo electronVolts
Returns:
  • wavelength (float) – relativistic electron wavelength in angstroms
  • Authors:
  • Debangshu Mukherjee <mukherjeed@ornl.gov>

Module contents