Interface PDESolutionGrid2D
-
public interface PDESolutionGrid2DA solution to a bivariate PDE, which is applicable to methods which produce the solution as a two-dimensional grid. The indices are within ranges 0 ≤ k ≤ (m+1) and 0 ≤ j ≤ (n+1), where the boundaries lie at 0 and (m+1) and 0 and (n+1) respectively.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intm()Gets the number of interior x-axis grid points in the solution.intn()Gets the number of interior y-axis grid points in the solution.doubleu(int k, int j)Gets the value of the grid point at (xk, yj).doublex(int k)Gets the value on the x-axis at indexk.doubley(int j)Gets the value on the y-axis at indexj.
-
-
-
Method Detail
-
u
double u(int k, int j)Gets the value of the grid point at (xk, yj).- Parameters:
k- the index along the x-axisj- the index along the y-axis- Returns:
- the value at that point
-
x
double x(int k)
Gets the value on the x-axis at indexk.- Parameters:
k- the index of the grid point- Returns:
- xk
-
y
double y(int j)
Gets the value on the y-axis at indexj.- Parameters:
j- the index of the grid point- Returns:
- yj
-
m
int m()
Gets the number of interior x-axis grid points in the solution.- Returns:
- the number of solution grid points along the x-axis
-
n
int n()
Gets the number of interior y-axis grid points in the solution.- Returns:
- the number of solution grid points along the y-axis
-
-