Coupled odes involving mass matrix

5 次查看(过去 30 天)
I am solving two coupled differential equations. The 1st ode is linear in the variable say x which is a function of time t. The first ode is simple like: dxdt=ax, a=constant.
The 2nd ode is coupled and linear in the variable y. y is a function of time t amd variable x. dydt involves the variable x and t both. Also the 2nd ode is of the form M(t,x)*dydt=F(t,y,x), where M(t,x) is the mass matrix which is a function of both time t and dependent variable x. How do I solve this two odes? And I don't want to invert the mass matrix present on the left hand side of the 2nd ode in order to solve dydt=M(t,x)^-1*F(t,y,x), as inverting the mass matrix produces the error message: Matrix is close to singular or badly scaled. So, I want to solve the 2nd ode by keeping the mass matrix as it is on the left hand side. Any input will be highly appreciated.
Thanks a lot.
  3 个评论
Sreeja Loho Choudhury
Thanks for your input. Is this a DAE? I was thinking to solve it using ode 113 or ode45.
Sreeja Loho Choudhury
Here the mass matrix is state dependent. So, do I need to use the option 'MStateDependence' instead of simply using 'Mass'.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by