CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Weak statement for Galerkin Method (https://www.cfd-online.com/Forums/main/74226-weak-statement-galerkin-method.html)

rugabug March 26, 2010 19:19

Weak statement for Galerkin Method
 
I have the equation -∇^2u+u-x^2=0 where u(0)=u(1)=0.
I need to solve it using Galerkin Method using the approximation of psi=sin(n*pi*x). I've already solved the exact solution but when I work out the Galerkin method I only get half a sine wave. I believe I'm messing up the weak statement. Could somebody walk me through the method to construct a weak statement?


All times are GMT -4. The time now is 13:23.