omega_solns_core#
- anri.diffract.omega_solns_core(q_sample, k_in_sample)[source]#
Solve the Ewald condition for omega, up to the choice of Friedel branch.
- Parameters:
- Returns:
Notes
The Ewald condition reduces to \(\alpha \cos\omega + \beta \sin\omega = \delta\), which harmonic addition turns into \(R \sin(\omega + \phi) = \delta\) with \(R = \sqrt{\alpha^2 + \beta^2}\). Both Friedel solutions follow from \(\arcsin(\delta / R)\) and \(\phi\); only the final phase shift distinguishes them, so those two quantities are the natural thing to compute once and reuse. See
omega_solns()for the full derivation.Validity is a property of the geometry, not of the branch, so it is returned here rather than per solution.
See also
omega_from_coreSelects one branch from this output.
omega_solnsReturns a single solution in degrees.
omega_solns_bothReturns both solutions in degrees.