aloe.physics.wave module

aloe.physics.wave.XWavel(energy_keV)[source]

calculates photon wavelength

input: energy in keV output: wavelength in Angstroms

Notes: E=hc/lambda h*c is 1239.84 eV*nm

aloe.physics.wave.bragg_angle(dhkl, wavel)[source]

Bragg law: lamda = 2*d*sin(theta)

aloe.physics.wave.wavelength_e(Ekin)[source]

calculates relativistically correct electron wavelength

input: energy in keV output: wavelength in Angstroms

Notes:

based on formula for relativistic kinetic energy Ekin=sqrt((m*c**2)**2+(p*c)**2)-m*c**2 and lambda=h/p