Class Summary Class Description AntiprotonAniClass AntiprotonAni is a sequential program that calculates the positions of the antiprotons as a function of time and displays an animation on the screen. AntiprotonCluClass AntiprotonClu is a cluster parallel program that calculates the positions of the antiprotons as a function of time. AntiprotonClu2Class AntiprotonClu2 is a cluster parallel program that calculates the positions of the antiprotons as a function of time. AntiprotonClu3Class AntiprotonClu3 is a cluster parallel program that calculates the positions of the antiprotons as a function of time. AntiprotonFileClass AntiprotonFile provides an object for reading or writing a series of snapshots of antiproton positions from or to a file. AntiprotonPlotClass AntiprotonPlot is a main program that plots antiproton position data. AntiprotonSeqClass AntiprotonSeq is a sequential program that calculates the positions of the antiprotons as a function of time. TrapFrameClass TrapFrame is a UI window that displays the positions of antiprotons and the total momentum in the Antimatter Simulation. TrapPanelClass TrapPanel is a UI that displays the positions of antiprotons in the Antimatter Simulation.
Package edu.rit.clu.antimatter Description
The Antimatter Simulation programcalculates the motion of a number of antiprotonsmoving in a two-dimensional plane.The antiprotons have equal, negative charges.Each antiproton experiences a repulsive forcefrom every other antiprotonthat is directly proportionalto the product of the antiprotons' chargesand is inversely proportionalto the square of the distancebetween the antiprotons.A magnetic field is imposedperpendicular to the plane of the antiprotons.As each antiproton moves,the magnetic field exerts a force on the antiprotonthat bends its path into a circle.
The Antimatter Simulation programmaintains each antiproton's position, velocity, and acceleration.The program calculates the positions and velocitiesas a function of timeby doing a series of discrete time steps.At each time step,the program calculates the total acceleration of each antiproton(due to repulsive forces from all other antiprotonsplus the magnetic force),updates the velocity based on the acceleration,and updates the position based on the velocity and acceleration:
v' = v + δ a
p' = p + δ v + 1/2 δ2 a
where a is the acceleration,v is the velocity before the time step,v' is the velocity after the time step,p is the position before the time step,p' is the position after the time step,and δ is the size of the time step.(These formulas represent the first few termsin the Taylor series expansionsfor velocity and position as a function of time.)
The cluster parallel programs in this package use Parallel Java (PJ)in package edu.rit.pj.
SCaVis 1.8 © jWork.org