Coupled odes involving mass matrix

4 Ansichten (letzte 30 Tage)
Sreeja Loho Choudhury
Sreeja Loho Choudhury am 27 Jul. 2020
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 Kommentare
Sreeja Loho Choudhury
Sreeja Loho Choudhury am 28 Jul. 2020
Thanks for your input. Is this a DAE? I was thinking to solve it using ode 113 or ode45.
Sreeja Loho Choudhury
Sreeja Loho Choudhury am 28 Jul. 2020
Here the mass matrix is state dependent. So, do I need to use the option 'MStateDependence' instead of simply using 'Mass'.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by