5. Numerical experiments
In this section we perform two numerical experiments to test the convergence rate obtained in Theorem 4.1. The first experiment shows that linear convergence is obtained, in the H 1 -norm, for a problem with multiscale data. The second experiment shows that the locking effect is reduced for a problem with high value of λ. We refer to [36] for a discussion on how to implement this type of generalized finite elements efficiently. We consider an isotropic medium, see Remark 2.1, on the unit square in R 2 . Recall that the stress tensor in the isotropic case takes the form σ (u) = 2µε(u) + λ(∇ · u)I, where µ and λ are the Lame coefficients. For simplicity we consider only homogeneous Dirichlet boundary conditions, ´ that is, ΓD = ∂Ω and g = 0. The body forces are set to f = [1 1] | . In the first experiment, we test the convergence on two different setups for the Lame coefficients, one with ´ multiscale features, and one with constant coefficients µ = λ = 1. For the problem with multiscale features we choose µ and λ to be discontinuous on a Cartesian grid of size 2−5 . The values at the cells are chosen randomly between 0.1 and 10. The resulting coefficients are shown in Fig. 1. For the numerical approximations we discretize the domain with a uniform triangulation. The reference solution uh in (3.1) is computed using a mesh of size h = √ 2 · 2 −6 , which is small enough to resolve the multiscale coefficients in Fig. 1. The generalized finite element (GFEM) solution in (4.4) is computed on several meshes of decreasing size, H = √ 2 · 2 −1 , . . . , √ 2 · 2 −5 with k = 1, 1, 2, 2, 3, which corresponds to k = ⌈0.8 log H −1 ⌉. These solutions are compared to the reference solution. For comparison we also compute the classical piecewise linear finite element (P1- FEM) solution on the meshes of size H = √ 2 · 2 −1 , . . . , √ 2 · 2 −5 . The error is computed using the H 1 semi-norm ∥∇ · ∥ and plotted in Fig. 2.