How accurate it is¶
What accuracy to expect of each kind of problem. The measured errors and costs of each method are on the pages of the methods.
The order of the methods¶
Most methods are spectral: the error falls faster than any power of the grid spacing, and ten digits are common on modest grids. Two are of second order, where halving the grid spacing divides the error by four: finite cylinders with vacuum outside, and bodies with sharp surfaces.
Problem |
In space |
In time |
|---|---|---|
Free space and periodic boxes |
spectral |
exact where the equation is linear with constant coefficients |
Boxes and round domains with conditions |
spectral |
exact where the equation is linear with constant coefficients |
Regions of the plane, stationary |
spectral. Ten digits are reached at a corner that points inwards too |
|
Regions of the plane, in time |
spectral where the solution is smooth. Three or four digits at a corner that points inwards, and for a pulse |
exact for the modes of the shape |
Disks and balls with vacuum outside |
spectral |
|
Cylinders with vacuum outside |
second order |
|
Bodies with sharp surfaces |
second order |
|
Terms that are stepped, on every domain |
as the domain |
fourth order, with an error per step that a tolerance bounds |
Corners of a region¶
On a region with a corner that points inwards, such as an L-shape, the solution has a singularity at the corner. The mesh shrinks towards such a corner, and ten digits are reached there too. In a problem in time it does not yet, and three or four digits are left. Waves on a region are computed with a few thousand points, which is three or four digits for a pulse.
In time¶
In time, linear equations are propagated exactly. Only nonlinear terms are stepped, with an error that a tolerance bounds.
What a solution reports¶
Every solution comes with diagnostics that tell whether the grid and the box were adequate.
What costs accuracy without an error being raised is on the page of known limits, under “Accuracy”.
See also: Accuracy and diagnostics and The planner and its plan.