0.6.0
Loading...
Searching...
No Matches
2D/3D Poisson equation with Robin boundary conditions

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:

  1. validate the discretization of the diffusive term of a cell advection/diffusion equation;
  2. validate the Robin boundary condition of a cell scalar equation in higher dimensions;
  3. validate all the schemes i higher dimensions.

Configurations

Setup

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 ) \)

Runtime parameters

Energy equation is used:

Test cases

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.

Comments and Expectations

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.

Results

Second-order diffusion scheme for all boundary schemes

boundary_condition_scheme linear | quadratic | cubic;
diffusion_scheme implicit o2_centered;

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.

Figure 1: Convergence graph with multiple boundary schemes

Fourth-order diffusion scheme for all boundary schemes

boundary_condition_scheme linear | quadratic | cubic;
diffusion_scheme implicit o4_centered;

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.

Figure 2: Convergence graph with multiple boundary schemes