All Packages Class Hierarchy This Package Previous Next Index
Class AT.Ac.univie.imp.loeffler.pde.threeD.fd.PeriodicBoundaryGrid
java.lang.Object
|
+----AT.Ac.univie.imp.loeffler.pde.threeD.fd.Grid
|
+----AT.Ac.univie.imp.loeffler.pde.threeD.fd.BoundaryGrid
|
+----AT.Ac.univie.imp.loeffler.pde.threeD.fd.PeriodicBoundaryGrid
- public final class PeriodicBoundaryGrid
- extends BoundaryGrid
An implementation of BoundaryGrid where the boundary elements are periodic images of interior grid elements.
The exact definition of periodic boundary conditions in this context is that any index equal to 0 will
be translated to (size() - 2) and any index equal to (size() - 1) will be translated to 1.
This translation is done independently for each index and the resulting interior element is returned as
the requested boundary element.
- Author:
- Gerald Loeffler (Gerald.Loeffler@univie.ac.at)
-
PeriodicBoundaryGrid(int, double)
- construct from size and initial value for all elements in the interior.
-
getBoundary(int, int, int)
- implements method from Grid.
-
newInstance(int, double)
- implements method from ConstGrid.
PeriodicBoundaryGrid
public PeriodicBoundaryGrid(int size,
double interiorValue)
- construct from size and initial value for all elements in the interior.
- Parameters:
- size - the size of the grid
- interiorValue - the value to which all interior grid elements will be set
newInstance
public Grid newInstance(int size,
double value)
- implements method from ConstGrid.
- Overrides:
- newInstance in class Grid
- See Also:
- newInstance
getBoundary
protected double getBoundary(int x,
int y,
int z)
- implements method from Grid.
- Overrides:
- getBoundary in class Grid
- See Also:
- getBoundary
All Packages Class Hierarchy This Package Previous Next Index