# SuanShu, a Java numerical and statistical library

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

## Interface PDESolutionTimeSpaceGrid2D

• public interface PDESolutionTimeSpaceGrid2D
A solution to a two-dimensional PDE, which is applicable to methods which produce the solution as a three-dimensional grid of time and space. The valid index ranges are 0 ≤ k ≤ m, 0 ≤ i ≤ n+1 and 0 ≤ j ≤ p+1, where k=0 is the initial condition and boundaries are located at i=0, i=n+1, j=0 and j=p+1 respectively.
• ### Method Summary

All Methods
Modifier and Type Method and Description
int m()
Get the number of interior time-axis grid points in the solution.
int n()
Get the number of interior x-axis grid points in the solution.
int p()
Get the number of interior y-axis grid points in the solution.
double t(int k)
Get the value on the time-axis at index k.
double u(int k, int i, int j)
Get the value of the grid point at (tk, xi, yj).
double x(int i)
Get the value on the x-axis at index i.
double y(int j)
Get the value on the y-axis at index j.
• ### Method Detail

• #### u

double u(int k,
int i,
int j)
Get the value of the grid point at (tk, xi, yj).
Parameters:
k - the index along the time-axis
i - the index along the x-axis
j - the index along the y-axis
Returns:
the value at the grid point
• #### t

double t(int k)
Get the value on the time-axis at index k.
Parameters:
k - the index of the grid point
Returns:
tk
• #### x

double x(int i)
Get the value on the x-axis at index i.
Parameters:
i - the index of the grid point
Returns:
xi
• #### y

double y(int j)
Get the value on the y-axis at index j.
Parameters:
j - the index of the grid point
Returns:
yj
• #### m

int m()
Get the number of interior time-axis grid points in the solution.
Returns:
the number of solution grid points along the time-axis
• #### n

int n()
Get the number of interior x-axis grid points in the solution.
Returns:
the number of solution grid points along the x-axis
• #### p

int p()
Get the number of interior y-axis grid points in the solution.
Returns:
the number of solution grid points along the y-axis