FEniCS Course - FEniCS Project

FEniCS Course - FEniCS Project FEniCS Course - FEniCS Project

fenicsproject.org
from fenicsproject.org More from this publisher
12.07.2015 Views

Canonical variational problemThe following canonical notation is used in FEniCS: find u ∈ Vsuch thata(u, v) = L(v)for all v ∈ ˆVFor Poisson’s equation, we have∫a(u, v) = ∇u · ∇v dx∫ΩL(v) = fv dxΩa(u, v) is a bilinear form and L(v) is a linear form8 / 22

A test problemWe construct a test problem for which we can easily check theanswer. We first define the exact solution byu(x, y) = 1 + x 2 + 2y 2We insert this into Poisson’s equation:f = −∆u = −∆(1 + x 2 + 2y 2 ) = −(2 + 4) = −6This technique is called the method of manufactured solutions9 / 22

A test problemWe construct a test problem for which we can easily check theanswer. We first define the exact solution byu(x, y) = 1 + x 2 + 2y 2We insert this into Poisson’s equation:f = −∆u = −∆(1 + x 2 + 2y 2 ) = −(2 + 4) = −6This technique is called the method of manufactured solutions9 / 22

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!