How to fix the discrepancy in the results obtained by ode45 versus Newton-Raphson method?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello everyone,
I am trying to solve a 1D vibration problem:
. Where
.
With this problem, I have tried two ways:
- I discretized the ϕ in an N-loop and update it after each time step
. Inside this N-loop, I use ode45 to solve the following equation:
. - I discretized the ϕ in an Newmark N-loop and update it after each time step
. Inside this Newmark N-loop, I use Newton-Raphson to solve and update the above equation.
Theoretically, I expect there should be similar outputs on both of the above methods. But they are not. Is there any ideas why we have this discrepancy here? I am attaching the m-script here so that you can easily imagine the both algorithms and outputs.
Thanks in advance. Minh
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!