I'm trying to understand the Convergence of the mean part of the Step-3 tutorial in deal.II. The authors say that $\frac{1}{|\Omega|}\int_{\Omega} u_h(x)dx$ converges with $\mathcal{O}(h^2)$, but I really can't understand the following sentence:
"Again, the difference between two adjacent values goes down by about a factor of four, indicating convergence as $\mathcal{O}(h^2)$"
What do the developers mean with $h$? Of course it's related to the spacing, but I cannot understand how.
Why does the fact that the difference between two adjacent values goes down by a factor of $4$ implies that the order of convergence is $2$?
EDIT:
Changing the degree of the polynomials to $2$, i.e. by setting in the constructor fe(2)
instead of fe(1)
, the mean values are:
$$1.139601139601139$$ $$1.140473273027236$$ $$1.140568088078042$$ $$1.140576306709475$$ $$1.140576961327481$$ $$1.140577011018993$$ $$1.14057701467338$$ $$1.14057701493724$$ $$$$