CFD Online Discussion Forums

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

rugabug March 26, 2010 20: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 23:51.