public class ExplicitCentralDifference1D extends Object implements PDESolver
m and n.
This is a second-order method with a truncation error of order \(O(\Delta t^2 + \Delta x^2)\).| Constructor and Description |
|---|
ExplicitCentralDifference1D() |
| Modifier and Type | Method and Description |
|---|---|
PDESolutionTimeSpaceGrid1D |
solve(WaveEquation1D pde,
int m,
int n)
Solve an one-dimensional wave equation, with the resolution parameters of the solution grid.
|
public PDESolutionTimeSpaceGrid1D solve(WaveEquation1D pde, int m, int n)
pde - the wave equation problemm - the number of grid points along the time-axisn - the number of grid points along the space-axisCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.