BlochWaveBackend#
- class de_ebsd.diffraction.BlochWaveBackend[source]#
Bases:
MasterPatternBackendThe physical Bloch-wave backend (EMsoft
CalcLgh+Sgh).Per beam direction: classify reflections (Bethe), build the dynamical matrix, eigendecompose and depth-integrate (
calc_lgh()), weight with the structure-factor-likeSghmatrix, and reduce to one backscatter intensityI(k) = Re sum_gh L_gh S_gh / n_atoms.This is the float64 reference path (one direction at a time), the M2 correctness milestone; the batched GPU path (bucket by strong-beam count + batched eig) is the follow-up optimization behind the same interface.
Methods
Intensities (K,) for unit directions (K, 3).
Build and cache per-simulation tensors on the target device.
Attributes
namewhether this backend consumes a Monte Carlo exit-depth profile; the simulator builds a native one (EMsoft-free) when the user supplies none.
- uses_depth_profile = True#
whether this backend consumes a Monte Carlo exit-depth profile; the simulator builds a native one (EMsoft-free) when the user supplies none.