All Packages Class Hierarchy This Package Previous Next Index
Class AT.Ac.univie.imp.loeffler.pde.threeD.fd.FixedBoundaryGrid
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.FixedBoundaryGrid
- public final class FixedBoundaryGrid
- extends BoundaryGrid
An implementation of BoundaryGrid where all the boundary elements are set once at construction time to a
single, common value and remain fixed thereafter.
- Author:
- Gerald Loeffler (Gerald.Loeffler@univie.ac.at)
-
FixedBoundaryGrid(int, double, double)
- construct from size, initial value for all elements in the interior and initial value for all elements
at the boundary.
-
getBoundary(int, int, int)
- implements method from Grid.
-
newInstance(int, double)
- implements method from ConstGrid.
FixedBoundaryGrid
public FixedBoundaryGrid(int size,
double interiorValue,
double boundaryValue)
- construct from size, initial value for all elements in the interior and initial value for all elements
at the boundary.
- Parameters:
- size - the size of the grid ( > 0)
- interiorValue - the value to which all interior grid elements will be set
- boundaryValue - the value to which all boundary 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.
the given grid element must lie at the boundary of the grid
- Overrides:
- getBoundary in class Grid
- See Also:
- getBoundary
All Packages Class Hierarchy This Package Previous Next Index