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

5 次查看(过去 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

采纳的回答

Torsten
Torsten 2022-9-21
编辑:Torsten 2022-9-21
Solve the third equation for theta_dotdot and insert this expression in equations (1) and (2).
Then use the usual substitutions
z1 = x
z2 = xdot
z3 = y
z4 = ydot
z5 = theta
z6 = thetadot
  6 个评论

请先登录,再进行评论。

更多回答(1 个)

James Tursa
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
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 CenterFile Exchange 中查找有关 Systems of Nonlinear Equations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by