calculate_theta#

ReciprocalLatticeVector.calculate_theta(voltage)[source]#

Populate theta with the Bragg angle \(theta_B\) in radians.

Assumes phase.structure lattice parameters and Debye-Waller factors are expressed in Ångströms.

Parameters:

voltage (float) – Beam energy in V.

Examples

See ReciprocalLatticeVector for the creation of rlv

>>> rlv
ReciprocalLatticeVector (2,), al (m-3m)
[[1. 1. 1.]
 [2. 0. 0.]]
>>> rlv.calculate_theta(20e3)
>>> rlv.theta
array([0.0184036 , 0.02125105])
>>> rlv.calculate_theta(200e3)
>>> rlv.theta
array([0.00537583, 0.00620749])