Interface PDESolutionTimeSpaceGrid2D
-
public interface PDESolutionTimeSpaceGrid2DA 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 Instance Methods Abstract Methods Modifier and Type Method Description intm()Get the number of interior time-axis grid points in the solution.intn()Get the number of interior x-axis grid points in the solution.intp()Get the number of interior y-axis grid points in the solution.doublet(int k)Get the value on the time-axis at indexk.doubleu(int k, int i, int j)Get the value of the grid point at (tk, xi, yj).doublex(int i)Get the value on the x-axis at indexi.doubley(int j)Get the value on the y-axis at indexj.
-
-
-
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-axisi- the index along the x-axisj- 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 indexk.- Parameters:
k- the index of the grid point- Returns:
- tk
-
x
double x(int i)
Get the value on the x-axis at indexi.- Parameters:
i- the index of the grid point- Returns:
- xi
-
y
double y(int j)
Get the value on the y-axis at indexj.- 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
-
-