Coupled odes involving mass matrix

4 visualizaciones (últimos 30 días)
Sreeja Loho Choudhury
Sreeja Loho Choudhury el 27 de Jul. de 2020
Comentada: Sreeja Loho Choudhury el 28 de Jul. de 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 comentarios
Sreeja Loho Choudhury
Sreeja Loho Choudhury el 28 de Jul. de 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 el 28 de Jul. de 2020
Here the mass matrix is state dependent. So, do I need to use the option 'MStateDependence' instead of simply using 'Mass'.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by