8

The error estimates in FEM are usually of the form

$$||u^h-u||\leq Ch.$$

Taking logarithm on both sides, we obtain

$$\log ||u^h-u||\leq \log C + \log h.$$

This estimate implies that the error lies below the straight line given by $\log y=\log C + \log h$ in the log-log scale. This estimate does not say that the plot of error with respect to $h$ should be a straight line, only that it should lie below a straight line.

Then, why is it that most error plots which are published in journals show a very sharp straight line for the error? I would be grateful for some insight into this question, as I am a novice to scientific computing.

In particular, some computations that I performed on FEniCS showed error plots which are not straight lines, however the graph does lie below a straight line. Does a particular linear solver affect such behaviour? I am using mumps linear solver.

Edit: In the picture below, theoretical results show that the error (plotted on the y axis) should decay as $1/R$ where $R$ is plotted on the x axis. The second figure is in the log-log scale.

enter image description here

enter image description here

  • 1
    -- A direct linear solver (like MUMPS) has no impact for the level of errors you are considering (i.e. ~ $10^{-3}$) -- When the problem is coercive (i.e. $\sqrt{ a(v,v) }$ is equivalent to a norm), using a series of nested meshes will guarantee that the error decreases with $h$... but not that you get a straight line. – user7440 Jul 16 '19 at 04:34