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)

Constructor Index

 o PeriodicBoundaryGrid(int, double)
construct from size and initial value for all elements in the interior.

Method Index

 o getBoundary(int, int, int)
implements method from Grid.
 o newInstance(int, double)
implements method from ConstGrid.

Constructors

 o 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

Methods

 o newInstance
 public Grid newInstance(int size,
                         double value)
implements method from ConstGrid.

Overrides:
newInstance in class Grid
See Also:
newInstance
 o 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