2D/3D Poisson test cases with Neumann boundary conditions
2D/3D Poisson test cases with Neumann boundary conditions
This test case solves the 2D/3D Poisson equation with general Neumann boundary conditions on all boundaries.
The aims of this test case are to:
The domain is the unit square/cube. We solve \(- \Delta T=f\) on the whole domain. Neumann boundary conditions are applied to all boundaries, where we set a uniform value \( \alpha \) (for homogeneous conditions, set \( \alpha = 0 \) ). Reference solutions of the problem are (see illustration below):
with the associated right-end-side:
boundary_condition_scheme linear|quadratic|cubic;diffusion_scheme implicit o2_centered|o4_centered;verification/laplacian/convergence/neumann_2D.nts and verification/laplacian/convergence/neumann_3D.nts.The non-regression test file is: verification/laplacian/neumann.nts
verification/laplacian/convergence/neumann_3D.nts (=> neumann.nts) for non-regression for the 3 directions.Second-order convergence is observed with \(L_2\), \(L_1\) or \(L_\infty\) norms.
| mesh | \(L_\infty\) error | Order | \(L_1\) error | Order | \(L_2\) error | Order |
|---|---|---|---|---|---|---|
| 10 | 2.566580e-03 | n/a | 1.075103e-03 | n/a | 1.315482e-03 | n/a |
| 20 | 6.512728e-04 | 1.98 | 2.661326e-04 | 2.01 | 3.276534e-04 | 2.01 |
| 40 | 1.634228e-04 | 1.99 | 6.636913e-05 | 2.00 | 8.183755e-05 | 2.00 |
| 80 | 4.089354e-05 | 2.00 | 1.658205e-05 | 2.00 | 2.045465e-05 | 2.00 |
| mesh | \(L_\infty\) error | Order | \(L_1\) error | Order | \(L_2\) error | Order |
|---|---|---|---|---|---|---|
| 10 | 2.534981e-03 | n/a | 6.872545e-04 | n/a | 9.301862e-04 | n/a |
| 20 | 6.492651e-04 | 1.97 | 1.695996e-04 | 2.02 | 2.316859e-04 | 2.01 |
| 40 | 1.632968e-04 | 1.99 | 4.226276e-05 | 2.00 | 5.786789e-05 | 2.00 |
| 80 | 4.088565e-05 | 2.00 | 1.055714e-05 | 2.00 | 1.446362e-05 | 2.00 |
The grid size starts from 10 in every direction to 160. Second-order convergence is observed with \(L_2\), \(L_1\) or \(L_\infty\) norms.
| Mesh | Temperature L1 error | Order | Temperature L2 error | Order | Temperature Linf error | Order |
|---|---|---|---|---|---|---|
| 10×10 | 1.1524e-05 | n/a | 1.4110e-05 | n/a | 3.0974e-05 | n/a |
| 20×20 | 8.0063e-07 | 3.85 | 9.9484e-07 | 3.83 | 2.1509e-06 | 3.85 |
| 40×40 | 5.2321e-08 | 3.94 | 6.5042e-08 | 3.94 | 1.3875e-07 | 3.95 |
| 80×80 | 3.3387e-09 | 3.97 | 4.1407e-09 | 3.97 | 8.6383e-09 | 4.01 |
| 160×160 | 2.1083e-10 | 3.99 | 2.6089e-10 | 3.99 | 5.3484e-10 | 4.01 |