|Constructor and Description|
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|
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 allowed
public PDESolutionGrid2D solve(PoissonEquation2D pde, int m, int n)
UnsatisfiableErrorCriterionExceptionis thrown when the iteration cannot converge to the specified error bound within the maximum allowed number of iterations.
pde- the Poisson's equation
m- the number of points along the x-axis of the grid
n- the number of points along the y-axis of the grid
Copyright © 2010-2016 Numerical Method Incorporation Limited. All Rights Reserved.