Single-crystal diffraction calculations rely on g-vectors, U-matrices for defining grain orientation, and B-matrices for conversion between the Cartesian grain system and reciprocal space.
In physics in particular, g-vectors Ghkl are defined as a perpendicular to the diffracting plane (hkl) with a norm of 2π/dhkl.
In crystallography, authors often do not include the 2π factor in the calculation of G. In this case, the norm of Ghkl is 1/dhkl or 2sin(θ)/λ.
Among multigrain XRD software:
For details on U and B matrices calculations, refer to