|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjabble.Evolver
jabble.Multigrid.VCycle
public class Multigrid.VCycle
| Field Summary |
|---|
| Fields inherited from class jabble.Evolver |
|---|
constantsMap, dDirs, fieldArrayMap, fieldMap, grid, stopTrigger |
| Constructor Summary | |
|---|---|
Multigrid.VCycle()
|
|
| Method Summary | |
|---|---|
protected void |
calculateNewFields()
Implements the multi grid method. |
void |
evolve(java.util.List<Slice> slices)
Evolves the data in the list of slices of one time step. |
int |
evolve(java.util.List<Slice> slices,
int maxIterations,
Trigger stopTrigger)
Evolves the slices using multi grid methods and the evolver given through the constructor. |
int |
getNPreviousSlicesNeeded()
The number of slices needed by MultiGrid is the same number of slices needed by the evolver. |
java.lang.String |
toString()
The String representation of the MultiGrid evolver, which include the toString() of the wrapped evolver. |
| Methods inherited from class jabble.Evolver |
|---|
evolve, initializeFieldArray, initializeFieldArray, skipBoundaryPoint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Multigrid.VCycle()
| Method Detail |
|---|
public int getNPreviousSlicesNeeded()
getNPreviousSlicesNeeded in class Evolverpublic void evolve(java.util.List<Slice> slices)
EvolverAn EllipticSolver will work by continuing to refine the solution at each iteration over the Grid. At each iteration, the solver will determine what was the best improvement (that is F[n](P) - F[n-1](P)) and if it's less than the truncation error it will return. The solver will not go past the maxIterations limit.
The solver will return the solution by modifying the data contained in the Slice, or by removing and adding Fields accordingly.
evolve in class Evolverslices - The slices containing the data to work on; first slice is the most recent in time
of iterations performed by the solver.
public int evolve(java.util.List<Slice> slices,
int maxIterations,
Trigger stopTrigger)
evolve in class Evolverslices - the slices with the data to evolvemaxIterations - the maximum number of iterations (on any grid)stopTrigger - stop condition for the evolver
protected void calculateNewFields()
calculateNewFields in class Evolverpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||