public class ExplicitCentralDifference2D extends Object implements PDESolver
m, n, and p.
This is a second-order method with a truncation error of order
\(O(\Delta t^2 + \Delta x^2 + \Delta y^2)\).| Constructor and Description |
|---|
ExplicitCentralDifference2D() |
| Modifier and Type | Method and Description |
|---|---|
PDESolutionTimeSpaceGrid2D |
solve(WaveEquation2D pde,
int m,
int n,
int p)
Solve a two-dimensional wave equation, with the resolution parameters of the solution grid.
|
public PDESolutionTimeSpaceGrid2D solve(WaveEquation2D pde, int m, int n, int p)
pde - the wave equation problemm - the number of grid points along the time-axis (excluding the initial condition)n - the number of grid points along the x-axis (excluding the two boundaries)p - the number of grid points along the y-axis (excluding the two boundaries)Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.