Class IdealMagSolenoid

All Implemented Interfaces:
IElectromagnet, IComponent, IElement

public class IdealMagSolenoid extends ThickElectromagnet

Models an ideal solenoid magnet. I don't know who implemented this class or when he or she did so. I can't really comment on details yet.

Since:
Apr 19, 2011
Author:
Christopher K. Allen
  • Field Details

  • Constructor Details

    • IdealMagSolenoid

      public IdealMagSolenoid(String strId, double dblFld, double dblLen)
      Creates a new instance of IdealMagSolenoid
      Parameters:
      strId - identifier for this IdealMagSolenoid object
      dblFld - field gradient strength (in Tesla)
      dblLen - length of the solenoid
    • IdealMagSolenoid

      public IdealMagSolenoid()
      JavaBean constructor - creates a new uninitialized instance of IdealMagSolenoid BE CAREFUL
  • Method Details

    • elapsedTime

      public double elapsedTime(IProbe probe, double dblLen)
      Returns the time taken for the probe to drift through part of the element.
      Specified by:
      elapsedTime in interface IElement
      Specified by:
      elapsedTime in class ThickElement
      Parameters:
      probe - propagating probe
      dblLen - length of subsection to propagate through meters
      Returns:
      the elapsed time through sectionUnits: seconds
    • energyGain

      public double energyGain(IProbe probe, double dblLen)
      Return the energy gain imparted to a particular probe. For an ideal solenoid magnet this value is always zero.
      Specified by:
      energyGain in interface IElement
      Specified by:
      energyGain in class ThickElement
      Parameters:
      probe - dummy argument
      dblLen - dummy argument
      Returns:
      returns a zero value
    • transferMap

      public PhaseMap transferMap(IProbe probe, double length)
      Compute the partial transfer map of an ideal solenoid for the particular probe. Computes transfer map for a section of solenoid dblLen meters in length.
      Specified by:
      transferMap in interface IElement
      Specified by:
      transferMap in class ThickElement
      Parameters:
      probe - supplies the charge, rest and kinetic energy parameters
      length - compute transfer matrix for section of this length
      Returns:
      transfer map of ideal quadrupole for particular probe
      See Also:
    • print

      public void print(PrintWriter os)
      Dump current state and content to output stream.
      Overrides:
      print in class Element
      Parameters:
      os - output stream object