Steady Convection-Diffusion with Dirichlet boundary data. P1 or P2 and with remeshing
\begin{array}{rcl} -\nu \,u_{xx}+b\,u_x & =&0 \quad\mbox{on } (0,1),\quad \nu <<b\\ u(0)=0,\;u(1) & =&1. \end{array}
These results use P2 finite elements and a row of triangles sitting on the 1d interval to use the freefem tools
![]() |
Results viewed with MATLAB |
![]() | ![]() |
Uniform mesh | computed solution |
![]() | ![]() |
Adapted mesh | computed solution |
download example : SteadyConvection-Diff-1d.edp and its MATLAB companion code plotconvecdiffusion.m