calculate_theta#
- ReciprocalLatticeVector.calculate_theta(voltage)[source]#
Populate
thetawith the Bragg angle \(theta_B\) in radians.Assumes
phase.structurelattice parameters and Debye-Waller factors are expressed in Ångströms.- Parameters:
- voltage
float Beam energy in V.
- voltage
Examples
See
ReciprocalLatticeVectorfor the creation ofrlv>>> 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])