I have a probably dumb question with the finite element method. Consider a 2D Poisson equation: $\nabla (a(x)\nabla u(x)) = f(x)$ with suitable boundary conditions. Suppose we solve the problem with finite element. In my problem, I am particular interested in the gradient $\nabla u$. I am wondering if there is some easier way to find the gradient. Can it by some by product of the finite element method for solving the equation?
Thanks in advance!
The boundary conditions will typically get in the way of solving directly for ∇u(x). For instance, you might have a Dirichlet boundary condition specifying u(x) on the boundary. So you'll have to do your FEA as usual, and then determine $\nabla u$ a posteriori.