| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSolution
ParticleSolution
ParticleSolution -- Is an abstract class at the top of all the solvers that that push particles in phase space.
Solution| Field Summary | |
protected  double[][] | 
currentState
A vector with the position of the particles  | 
protected  boolean | 
distributionUpToDate
Whether the distribution function is up to date  | 
protected  int | 
numberOfRealisations
The number of test particles in the simulation  | 
protected  java.util.Random | 
random
Random number generator  | 
protected  double | 
stateDensity
The amount of mass each test particle represents  | 
| Fields inherited from class Solution | 
df, dfm, dfp, dg, dgm, dgp, dx, f, f0, fm, fp, g, gm, gp, ic, initialMoments, mesh, method, scheme, time, topic, x, x_0, x_1, xOffset, xSize, y_0, y_1, yOffset, ySize | 
| Constructor Summary | |
ParticleSolution(RunData runData)
Creates a ParticleSolution object.  | 
|
| Method Summary | |
 void | 
discretize(ShapeFunction function)
Discretize the initial Shape function and initialize the moments Initializes a new set of particles, the number being determined by the numerical scheme parameter.  | 
protected  void | 
generateDistribution()
Generates the distribution function from the set of test particles.  | 
 double | 
getValue(double arg)
Linear interpolation of the solution.  | 
 double | 
getValue(int index)
Gives the value of the function for an index  | 
 double[] | 
limits()
Calculates the limits of the solution.  | 
 double | 
momentsDeviation(int m)
Calculates the deviation from the m:th initial moment.  | 
 boolean | 
previous(RunData runData)
Take the solution backward one step to initialize 3 time level schemes; not appropriate in this context.  | 
| Methods inherited from class Solution | 
calculateMoments, getTime, getWinSize, hasOption, incTime, limits, measure, next, output, plot, rescale, setIC, setMethod, setScheme, setTime, setTopic, updateHeaders | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected int numberOfRealisations
protected double[][] currentState
protected double stateDensity
protected boolean distributionUpToDate
protected java.util.Random random
| Constructor Detail | 
public ParticleSolution(RunData runData)
runData - The run time parametersSolution.next(RunData), 
Solution.discretize(ShapeFunction)| Method Detail | 
public boolean previous(RunData runData)
previous in class SolutionrunData - List of run parameters
RunDatapublic void discretize(ShapeFunction function)
discretize in class Solutionfunction - The initial shape to be approximatedSolution.setScheme(java.lang.String)public double momentsDeviation(int m)
momentsDeviation in class Solutionm - The order of the moment
public double[] limits()
public double getValue(int index)
getValue in class Solutionindex - The index for which to get the value
public double getValue(double arg)
getValue in class Solutionarg - Argument
protected void generateDistribution()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||