Interface Grid
- All Known Implementing Classes:
AbstractGrid, ExponentialGrid, GaussianGrid, GridWithMandatoryPoint, HyperbolicSineGrid, UniformGrid
public interface Grid
Interface representing a spatial grid used in finite difference methods.
Provides access to the grid points and their spacing (deltas), supporting both uniform and non-uniform grids.
- Author:
- Michela Birtele
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]getDelta(double[] valuesOnGrid) Calculates the spacing (delta) between consecutive grid points based on the provided values on the grid.double[]getGrid()Returns the array of grid points representing the spatial locations.double[]Returns the interior grid, excluding the first and the last entry.
-
Method Details
-
getGrid
double[] getGrid()Returns the array of grid points representing the spatial locations.- Returns:
- An array of grid points.
-
getDelta
double[] getDelta(double[] valuesOnGrid) Calculates the spacing (delta) between consecutive grid points based on the provided values on the grid.- Parameters:
valuesOnGrid- An array of values defined at the grid points.- Returns:
- An array of deltas representing the spacing between points.
-
getInteriorGrid
double[] getInteriorGrid()Returns the interior grid, excluding the first and the last entry.- Returns:
- An array containing the interior grid points.
-