I have some coupled nonlinear ordinary differential equations. Three equations have three 2nd order derivative coupled together. Can someone tell me how I can get the response
조회 수: 4 (최근 30일)
이전 댓글 표시
I have some coupled nonlinear ordinary differential equations. Three equations have three 2nd order derivative coupled together. Can someone tell me how I can get the response, numerically? i.e t vs x , t vs theta dot plots.
Thanks in advance
댓글 수: 2
James Tursa
2022년 9월 21일
Do you have initial conditions for all the variables and first derivatives?
채택된 답변
추가 답변 (1개)
James Tursa
2022년 9월 21일
편집: James Tursa
2022년 9월 21일
Another related approach is to isolate all the 2nd derivatives on the LHS and put everything else on the RHS. Then pick off the coefficients of the 2nd order derivatives to form a matrix problem that you solve for the 2nd derivatives. E.g., the matrix problem would look something like this based on your comment edits:
A*z = b
where
A = [ 1 0 -f*sin(theta);
0 1 f*sin(theta);
-m*e*sin(theta) m*e*cos(theta) (m*e^2+Ip)/B^2]
and
z = [x_dotdot; y_dotdot; theta_dotdot]
and
b = 3x1 vector with all the other stuff from RHS
Then solve for z to get the 2nd derivatives.
댓글 수: 7
Torsten
2022년 9월 22일
편집: Torsten
2022년 9월 22일
It works up to t = 90 approximately (see above).
Then all your variables seem to blow up.
Either your equations are wrong, there is a singularity around t = 90 or the integrator is not able to solve your problem.
For all three problems, I cannot be of help.
참고 항목
카테고리
Help Center 및 File Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!