Newton-galerkin method for non-linear differential equation
3 次查看(过去 30 天)
显示 更早的评论
Hi
I want to implement the newton galerking method in order to solve the equation c(0)=1 & .I know there might be a built in function in matlab but I want to build my own code. The problem is that I am stuck in discretization of the equation for the R and J matrix(J δu=-R). I analyze c in quadratic basis functions , c=. The R must be nnx x 1 in dimensions in order to solve the system with newton iterative method but if I substitute c the R discretization has terms with i and also j so the matrix should be nnx x nnx in dimensions right?But thats impossible cause the R must have only i in discretization. I was used to implementing the galerkin method in linear differential equations where we solve the system Rij=0 and there is no need for initial values and iterative methods but now the R must be a vector not a matrix and I dont know how to deal with that. I know my question is a result of not fully undestanding the method. Any answer would help.
DISCRETIZATION: Ri=
J=
7 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!