|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjabble.stencils.SecondDerivativeStencils
public class SecondDerivativeStencils
Stencil library for second derivates on Fields in any dimensions.
| Method Summary | |
|---|---|
static double |
d2FieldBulk(Field field,
int dirIndex)
Calculates (F(x+1) - 2*F(x) + F(x-1)) / dx2. |
static double |
d2FieldLowerBoundary(Field field,
int dirIndex)
Calculates (2*F(x) - 5*F(x+1) + 4*F(x+2) - F(x+3)) / dx2. |
static double |
d2FieldMixedBulk(Field field,
int dirIndex1,
int dirIndex2)
Calculates mixed second derivative using a nine-point stencil (F(x+1, y+1) - F(x+1, y-1) - F(x-1, y+1) + F(x-1, y-1) / dx*dy. |
static double |
d2FieldUpperBoundary(Field field,
int dirIndex)
Calculates (2*F(x) - 5*F(x-1) + 4*F(x-2) - F(x-3)) / dx2. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double d2FieldBulk(Field field,
int dirIndex)
(F(x+1) - 2*F(x) + F(x-1)) / dx2.
field - The Field on which to calculate the derivativedirIndex - The direction on which to calculate the derivative
public static double d2FieldMixedBulk(Field field,
int dirIndex1,
int dirIndex2)
(F(x+1, y+1) - F(x+1, y-1) - F(x-1, y+1) + F(x-1, y-1) / dx*dy.
field - The Field on which to calculate the derivativedirIndex1 - The first direction on which to calculate the derivativedirIndex2 - The second direction on which to calculate the derivative
public static double d2FieldUpperBoundary(Field field,
int dirIndex)
(2*F(x) - 5*F(x-1) + 4*F(x-2) - F(x-3)) / dx2.
field - The Field on which to calculate the derivativedirIndex - The direction on which to calculate the derivative
public static double d2FieldLowerBoundary(Field field,
int dirIndex)
(2*F(x) - 5*F(x+1) + 4*F(x+2) - F(x+3)) / dx2.
field - The Field on which to calculate the derivativedirIndex - The direction on which to calculate the derivative
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||