Why are boundary terms eliminated in the Galerkin method?

247 Views Asked by At

I'm trying to learn the Galerkin method for finite element. I found this useful document with a 1D example about the stretching of a bar (pages 26 - 46).

This is the differential equation, boundary conditions, and the function that I'm trying to use to approximate it.

When computing the weak form you get some 'boundary terms' from the integration by parts. And I have seen in a lot of example that they get eliminated. WHY? In this case it might be because of the boundary conditions, both terms are zero. But if that's the case I can easily change the BCs and take them into account. But if I do that then I cannot solve the system, is it because if trial function I'm using?

Can someone clarify, why are this terms eliminated, and if the trial function that I'm using is ok?

1

There are 1 best solutions below

0
On

The first term is eliminated due to the second boundary condition and the second term is eliminated due to the first boundary condition.

If you have non-homogeneous boundary conditions (BC not equal to zero), then the terms are indeed non-zero.

The terms typically end up slightly modifying the resulting load vector.