public class IterativeCentralDifference extends Object implements PDESolver
Constructor and Description |
---|
IterativeCentralDifference(double errorBound,
int maxIterations)
Create an instance of this method with the given error bound as the convergence criterion,
and the maximum number of iterations allowed.
|
Modifier and Type | Method and Description |
---|---|
PDESolutionGrid2D |
solve(PoissonEquation2D pde,
int m,
int n)
Solve a Poisson's equation problem, with the given grid resolution parameters.
|
public IterativeCentralDifference(double errorBound, int maxIterations)
errorBound
- the error bound (convergence criterion)maxIterations
- the maximum number of iterations allowedpublic PDESolutionGrid2D solve(PoissonEquation2D pde, int m, int n)
UnsatisfiableErrorCriterionException
is thrown when the iteration cannot converge to
the specified error bound within the maximum allowed number of iterations.pde
- the Poisson's equationm
- the number of points along the x-axis of the gridn
- the number of points along the y-axis of the gridCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.