public interface PDESolutionTimeSpaceGrid1D
The arguments are integer grid indices, not physical time or position.
Use t(int) and x(int) to recover the coordinates of a stored
point. This interface does not interpolate between grid points.
Boundary coordinates can be valid even when boundary solution values are unsupported by a particular solver. In particular, Crank-Nicolson for the one-dimensional heat equation stores interior solution values only. Consult the producing solver rather than assuming every coordinate has a stored u value.
| Modifier and Type | Method and Description |
|---|---|
int |
M()
Gets the number of interior time-axis grid points in the solution.
|
int |
N()
Gets the number of interior space-axis grid points in the solution.
|
double |
t(int m)
Gets the value on the time axis at index
k. |
double |
u(int m,
int n)
Gets the value of the grid point at (tm,
xn).
|
double |
x(int n)
Gets the value on the space axis at index
j. |
double u(int m,
int n)
m - the index along the time axisn - the index along the space axisdouble t(int m)
k.m - the index of the grid pointdouble x(int n)
j.n - the index of the grid pointint M()
int N()
Copyright © 2010-2026 NM Group. All Rights Reserved.