Difference between revisions of "Units code"

From LIBISIS
Jump to navigation Jump to search
m
 
m
Line 6: Line 6:
  
  
*'t' - time-of-flight (microseconds)
+
*'$t' - time-of-flight (microseconds)
*'v' - neutron speed (m/s)
+
*'$v' - neutron speed (m/s)
*'tau' - inverse speed (s/m)
+
*'$tau' - inverse speed (s/m)
*'lam' - wavelength (Angstrom)
+
*'$lam' - wavelength (Angstrom)
*'k' - wavevector (Angstrom^-1)
+
*'$k' - wavevector (Angstrom^-1)
*'e' - energy (meV)
+
*'$e' - energy (meV)
*'q' - momentum transfer (Angstrom^-1)
+
*'$q' - momentum transfer (Angstrom^-1)
*'sq' - momentum transfer squared (Angstrom^2)
+
*'$sq' - momentum transfer squared (Angstrom^2)
  
  
Line 23: Line 23:
  
  
*'d' - d-spacing (Angstrom)
+
*'$d' - d-spacing (Angstrom)
  
  
 
==Inelastic instruments only==
 
==Inelastic instruments only==
  
*'w' - energy transfer (meV)
+
*'$w' - energy transfer (meV)
*'wn' - energy transfer (cm^-1)
+
*'$wn' - energy transfer (cm^-1)
*'thz' - energy transfer (THz)
+
*'$thz' - energy transfer (THz)
*'q+' - momentum transfer (+ve energy transfer)
+
*'$q+' - momentum transfer (+ve energy transfer)
*'q-' - momentum transfer (-ve energy transfer)
+
*'$q-' - momentum transfer (-ve energy transfer)
*'sq+' - momentum transfer squared (+ve energy transfer)
+
*'$sq+' - momentum transfer squared (+ve energy transfer)
*'sq-' - momentum transfer squared (-ve energy transfer)
+
*'$sq-' - momentum transfer squared (-ve energy transfer)
  
  
Line 45: Line 45:
 
==Direct geometry only==
 
==Direct geometry only==
  
*'v2' - final neutron speed (m/s)
+
*'$v2' - final neutron speed (m/s)
*'tau2' - final inverse neutron speed (s/m)
+
*'$tau2' - final inverse neutron speed (s/m)
*'lam2' - final wavelength (Angstrom)
+
*'$lam2' - final wavelength (Angstrom)
*'k2' - final wavevector (Angstrom^-1)
+
*'$k2' - final wavevector (Angstrom^-1)
*'e2' - final energy (meV)
+
*'$e2' - final energy (meV)
 
*Indirect geometry only:
 
*Indirect geometry only:
*'v1' - final neutron speed (m/s)
+
*'$v1' - final neutron speed (m/s)
*'tau1' - final inverse neutron speed (s/m)
+
*'$tau1' - final inverse neutron speed (s/m)
*'lam1' - final wavelength (Angstrom)
+
*'$lam1' - final wavelength (Angstrom)
*'k1' - final wavevector (Angstrom^-1)
+
*'$k1' - final wavevector (Angstrom^-1)
*'e1' - incident energy (meV)
+
*'$e1' - incident energy (meV)

Revision as of 15:15, 1 April 2008

There are a fixed set of specific units codes which are recognised by units conversion routines.


All instrument types

  • '$t' - time-of-flight (microseconds)
  • '$v' - neutron speed (m/s)
  • '$tau' - inverse speed (s/m)
  • '$lam' - wavelength (Angstrom)
  • '$k' - wavevector (Angstrom^-1)
  • '$e' - energy (meV)
  • '$q' - momentum transfer (Angstrom^-1)
  • '$sq' - momentum transfer squared (Angstrom^2)


Note: In the case of inelastic instruments, the units code is intelligently interpreted in units conversion routines to refer to incident or final neutrons according to whether the instrument is indirect or direct geometry. For example 'e' will refer to the final energy if direct geometry, initial energy if indirect geometry.


Elastic instruments only

  • '$d' - d-spacing (Angstrom)


Inelastic instruments only

  • '$w' - energy transfer (meV)
  • '$wn' - energy transfer (cm^-1)
  • '$thz' - energy transfer (THz)
  • '$q+' - momentum transfer (+ve energy transfer)
  • '$q-' - momentum transfer (-ve energy transfer)
  • '$sq+' - momentum transfer squared (+ve energy transfer)
  • '$sq-' - momentum transfer squared (-ve energy transfer)


Note: For inelastic instruments a given momentum transfer corresponds to two times-of-flight or energy transfers. The units type 'q+' and 'q-' enable the two branches of solutions to be separately selected.


Although the units conversion routines intelligently intepret the codes 'v', 'tau', 'lam', 'k' and 'e' to refer to the final or incident neutrons depending on the instrument type being direct or indirect geometry, the code can be explicitly set as below.


Direct geometry only

  • '$v2' - final neutron speed (m/s)
  • '$tau2' - final inverse neutron speed (s/m)
  • '$lam2' - final wavelength (Angstrom)
  • '$k2' - final wavevector (Angstrom^-1)
  • '$e2' - final energy (meV)
  • Indirect geometry only:
  • '$v1' - final neutron speed (m/s)
  • '$tau1' - final inverse neutron speed (s/m)
  • '$lam1' - final wavelength (Angstrom)
  • '$k1' - final wavevector (Angstrom^-1)
  • '$e1' - incident energy (meV)