Class RelativisticParameterConverter

java.lang.Object
xal.tools.beam.RelativisticParameterConverter

public class RelativisticParameterConverter extends Object
Utility class for converting between common relativistic (and related) parameters used in beam physics.
Since:
Dec 18, 2003
Version:
Oct 1, 2015 Added wave number computation
Author:
Christopher K. Allen
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    computeBetaFromEnergies(double w, double eR)
    Convenience function for computing the probe's velocity beta (w.r.t. the speed of light) from the particle's kinetic and rest energies.
    static double
    computeBetaFromGamma(double gamma)
    Convenience function for computing the probe's velocity beta (w.r.t. the speed of light) from the relativistic factor gamma.
    static double
    computeBetaFromWavenumber(double k, double freq)
    Compute the normalized particle velocity β for the given particle wave number k and frequency f.
    static double
    computeGammaFromBeta(double beta)
    Computes the relativistic factor gamma from the current beta value
    static double
    computeGammaFromEnergies(double w, double eR)
    Convenience function for computing the relativistic factor gamma from a particle's kinetic energy and rest energy.
    static double
    computeMomentumFromEnergies(double w, double eR)
    Convenience function for computing momentum from kinetic energy
    static double
    Computes and returns the momentum of a particle with the given rest and kinetic energies.
    static double
    computeWavenumberFromBeta(double beta, double freq)
    Compute and return the particle wave number k for the given normalized particle velocity β.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • computeGammaFromBeta

      public static double computeGammaFromBeta(double beta)
      Computes the relativistic factor gamma from the current beta value
      Parameters:
      beta - speed of probe w.r.t. the speed of light
      Returns:
      relativistic factor gamma
    • computeGammaFromEnergies

      public static double computeGammaFromEnergies(double w, double eR)
      Convenience function for computing the relativistic factor gamma from a particle's kinetic energy and rest energy.
      Parameters:
      w - kinetic energy of the particle
      eR - rest energy of particle
      Returns:
      relativistic factor gamma
    • computeBetaFromGamma

      public static double computeBetaFromGamma(double gamma)
      Convenience function for computing the probe's velocity beta (w.r.t. the speed of light) from the relativistic factor gamma.
      Parameters:
      gamma - relativistic factor gamma
      Returns:
      speed of probe (w.r.t. speed of light)
    • computeBetaFromEnergies

      public static double computeBetaFromEnergies(double w, double eR)
      Convenience function for computing the probe's velocity beta (w.r.t. the speed of light) from the particle's kinetic and rest energies.
      Parameters:
      W - kinetic energy of w particle (eV)
      eR - rest energy of particle (eV)
      Returns:
      speed of probe (w.r.t. speed of light)
    • computeWavenumberFromBeta

      public static double computeWavenumberFromBeta(double beta, double freq)

      Compute and return the particle wave number k for the given normalized particle velocity β. The formula is

          k = 2π/βλ ,

      where λ is the wavelength of the accelerating RF.

      Parameters:
      beta - normalized probe velocity
      freq - time-harmonic frequency f of surrounding RF field (Hz)
      Returns:
      particle wave number with respect to the RF
      Since:
      Feb 16, 2015 by Christopher K. Allen
    • computeBetaFromWavenumber

      public static double computeBetaFromWavenumber(double k, double freq)
      Compute the normalized particle velocity β for the given particle wave number k and frequency f.
      Parameters:
      k - wave number of the particle with respect to RF frequency (radians/meter)
      freq - time-harmonic frequency f of surrounding RF field (Hz)
      Returns:
      the normalized velocity β of the particle for the given wave number k
      Since:
      Sep 28, 2015 by Christopher K. Allen
    • computeMomentumFromEnergies

      public static double computeMomentumFromEnergies(double w, double eR)
      Convenience function for computing momentum from kinetic energy
      Parameters:
      w - kinetic energy of the particle (eV)
      eR - rest energy of particle (eV)
      Returns:
      particle momentum in eV where is the speed of light
    • computeStandardMomentumFromEnergies

      public static double computeStandardMomentumFromEnergies(double w, double eR)
      Computes and returns the momentum of a particle with the given rest and kinetic energies. This method returns the rest the the standard beam physics units of electron-volts/c where c is the speed of light. The returned value is given by the formula

          p = βγmc

      where β is the normalized particle velocity, γ is the relativistic factor, m is the mass of the particle, and c is the speed of light.
      Parameters:
      w - kinetic energy of the particle (eV)
      eR - rest energy of particle (eV)
      Returns:
      particle momentum in eV/c where c is the speed of light
      Since:
      Oct 1, 2015, Christopher K. Allen