# SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.analysis.differentialequation.pde.finitedifference

## Interface PDESolutionGrid2D

• public interface PDESolutionGrid2D
A 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
Modifier and Type Method and Description
int m()
Gets the number of interior x-axis grid points in the solution.
int n()
Gets the number of interior y-axis grid points in the solution.
double u(int k, int j)
Gets the value of the grid point at (xk, yj).
double x(int k)
Gets the value on the x-axis at index k.
double y(int j)
Gets the value on the y-axis at index j.
• ### 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-axis
j - 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 index k.
Parameters:
k - the index of the grid point
Returns:
xk
• #### y

double y(int j)
Gets the value on the y-axis at index j.
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