gov.nist.microanalysis.NISTMonte
Interface MonteCarloSS.ElectronGun

All Known Implementing Classes:
MonteCarloSS.GaussianBeam
Enclosing class:
MonteCarloSS

public static interface MonteCarloSS.ElectronGun

This interface allows the user to modify the properties of the electron gun. By implementing this interface, the user can create guns with a beam width, guns that raster or a variety of different gun properties. Use MonteCarloSS.setElectronGun to specify the implementation of this interface.
Note: The electron is rastered by moving the initial point rather than varying the beam angle. This is not realistic but is better numerically as the angles are otherwise tiny and subject to rounding errors.

Copyright: Not subject to copyright 2004

Company: National Institute of Standards and Technology

Version:
0.1
Author:
Nicholas W. M. Ritchie

Method Summary
 MonteCarloSS.Electron createElectron()
          createElectron - Called by MonteCarloSS at the beginning of each trajectory to get a fresh Electron.
 double getBeamEnergy()
          getBeamEnergy - Returns the beam energy
 double[] getCenter()
          getCenter - Returns the location of the center of the gun.
 void setBeamEnergy(double beamEnergy)
          setBeamEnergy - Called by MonteCarloSS.setBeamEnergy to modify the acceleration potential.
 void setCenter(double[] center)
          setCenter - Called by MonteCarloSS to set the location of the electron source.
 

Method Detail

setBeamEnergy

void setBeamEnergy(double beamEnergy)
setBeamEnergy - Called by MonteCarloSS.setBeamEnergy to modify the acceleration potential.

Parameters:
beamEnergy - double - in Joules

getBeamEnergy

double getBeamEnergy()
getBeamEnergy - Returns the beam energy

Returns:
double - in Joules

setCenter

void setCenter(double[] center)
setCenter - Called by MonteCarloSS to set the location of the electron source.

Parameters:
center - double[]

getCenter

double[] getCenter()
getCenter - Returns the location of the center of the gun.

Returns:
double[]

createElectron

MonteCarloSS.Electron createElectron()
createElectron - Called by MonteCarloSS at the beginning of each trajectory to get a fresh Electron.

Returns:
Electron