2D/3D Poisson test cases with Robin boundary conditions
2D/3D Poisson test cases with Robin boundary conditions
This test case solves the 2D/3D Poisson equation with Robin boundary conditions using a second and fourth-order centered scheme and the fourth-order boundary scheme cubic. The aims of this test case are:
Domain is cubic, its opposite corner coordinates being \((0,0,0)\) and \((1,1,1)\). We solve \(- \Delta T=f\) on the whole domain.
2D solution of the problem is set to
\[ T(x,y) = \cos(\pi x) \cos(\pi y)+ \sin(\pi x) \sin(\pi y)\]
.
3D solution of the problem is set to
\[ T(x,y,z) = \cos(\pi x) \cos(\pi y) \cos(\pi z)+ \sin(\pi x) \sin(\pi y) \sin(\pi z)\]
.
The right-end-side term \( f \) is equal to
The Robin boundary condition :
\[ T(x) = \alpha T(x) + \beta \nabla T . \vec{n} = g \]
.
Where \( \alpha = (\alpha_x ,\alpha_y, \alpha_z) \) and \( \beta = ( \beta_x , \beta_y, \beta_z) \) are the Robin coefficient in each direction and g is the value boundary condition and lastly \( \vec{n} \) is the normal vector on the boundary
Robin parameteres in 3D are chosen as follows.
| Boundary | \(\alpha \) | \(\beta \) | \(g \) |
|---|---|---|---|
| Left | 1 | 10 | \( \alpha_x \pi \cos(\pi y ) \cos(\pi z ) + \beta_x \pi \sin(\pi y ) \sin(\pi z )\) |
| Right | 10 | 5 | \( -\alpha_x \pi \cos(\pi y ) \cos(\pi z ) - \beta_x \pi \sin(\pi y ) \sin(\pi z ) \) |
| bottom | 1 | 10 | \( \alpha_y \pi \cos(\pi x ) \cos(\pi z ) + \beta_y \pi \sin(\pi x ) \sin(\pi z )\) |
| top | 10 | 5 | \( -\alpha_y \pi \cos(\pi x ) \cos(\pi z ) - \beta_y \pi \sin(\pi x ) \sin(\pi z ) \) |
Robin parameteres in 3D are chosen as follows.
| Boundary | \(\alpha \) | \(\beta \) | \(g \) |
|---|---|---|---|
| Left | 1 | 10 | \( \alpha_x \pi \cos(\pi y ) \cos(\pi z ) + \beta_x \pi \sin(\pi y ) \sin(\pi z )\) |
| Right | 10 | 5 | \( -\alpha_x \pi \cos(\pi y ) \cos(\pi z ) - \beta_x \pi \sin(\pi y ) \sin(\pi z ) \) |
| bottom | 1 | 10 | \( \alpha_y \pi \cos(\pi x ) \cos(\pi z ) + \beta_y \pi \sin(\pi x ) \sin(\pi z )\) |
| top | 10 | 5 | \( -\alpha_y \pi \cos(\pi x ) \cos(\pi z ) - \beta_y \pi \sin(\pi x ) \sin(\pi z ) \) |
| back | 1 | 10 | \( \alpha_z \pi \cos(\pi y ) \cos(\pi x ) + \beta_z \pi \sin(\pi y ) \sin(\pi x )\) |
| front | 10 | 5 | \( -\alpha_z \pi \cos(\pi y ) \cos(\pi x ) - \beta_z \pi \sin(\pi y ) \sin(\pi x ) \) |
Energy equation is used:
The file test_cases/verification/laplacian/bc_schemes_2D_3D.nts is used to check the convergence as well as to verify the non-regression.
Since the analytical solution is infinitely smooth (regular), we expect the numerical schemes to reproduce the solution with very high accuracy.
Regarding the Robin boundary conditions:
In summary, even in higher dimensions because the solution is highly regular, the numerical error should decrease rapidly with mesh refinement, and the impact of the boundary condition discretization order will be clearly visible in the convergence rates.
A convergence study is regrouped in following graph. Second order convergence is observed with \(L_2\), \(L_1\) or \(L_\infty\) norms with all the boudary schemes.
A convergence study is regrouped in following graph. The lowest order between the inner scheme and boundary scheme convergence is observed with \(L_2\), \(L_1\) or \(L_\infty\) norms with all the boundary schemes.