|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjabble.stencils.Average1DStencils
public class Average1DStencils
Stencil library for averages on Fields in 1D grids.
| Method Summary | |
|---|---|
static double |
downwindAverage(Field field)
Calculates (F(x) + F(x-1)) / 2. |
static double |
nearestNeighborAverage(Field field)
Calculates (F(x+1) + F(x-1)) / 2. |
static double |
upwindAverage(Field field)
Calculates (F(x+1) + F(x)) / 2. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double nearestNeighborAverage(Field field)
(F(x+1) + F(x-1)) / 2.
field - The Field on which to calculate the average
public static double upwindAverage(Field field)
(F(x+1) + F(x)) / 2.
field - The Field on which to calculate the average
public static double downwindAverage(Field field)
(F(x) + F(x-1)) / 2.
field - The Field on which to calculate the average
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||