ebsdsim computes Lambert-projected Kikuchi master patterns from crystal structures
using multi-beam dynamical electron diffraction on the GPU (WebGPU). Patterns are
written as raw intensities in compressed .npz files; display scaling is applied
when you load them.
User documentation is at ebsdsim.readthedocs.io.
pip install ebsdsimSimulations require a WebGPU adapter. See the installation guide for Python version support, GPU drivers, and editable installs.
import ebsdsim as es
mp = es.master_pattern_from_cif(
"GaN.cif",
voltage_kv=20.0,
halfw=250,
sigma_deg=70.0,
)
mp.save("GaN-master-pattern.npz")Bundled presets: GaN.cif, Ni.cif. See
examples/01_quick_start.ipynb.
Development and releases: CONTRIBUTING.md.
MIT — see LICENSE.
