Coupled System of ODE's with algebraic coefficients

Click For Summary
SUMMARY

The discussion centers on solving a system of four first-order linear ordinary differential equations (ODEs) coupled with three algebraic variables using MATLAB's ode15s solver. The user, Josh, encounters difficulties due to the presence of algebraic equations that are not differential in nature. Participants suggest that the system may be a differential-algebraic equation (DAE) and recommend exploring the ode15i function as an alternative. Clarification on the relationships between the ODEs and algebraic equations is also requested for better understanding.

PREREQUISITES
  • Understanding of first-order linear ordinary differential equations (ODEs)
  • Familiarity with MATLAB's ode15s and ode15i functions
  • Knowledge of differential-algebraic equations (DAEs)
  • Concept of mass matrices in ODE systems
NEXT STEPS
  • Review the documentation for MATLAB's ode15i function
  • Study the theory behind differential-algebraic equations (DAEs)
  • Learn how to formulate and solve systems involving mass matrices
  • Examine examples of coupled ODE and algebraic systems in MATLAB
USEFUL FOR

Mathematicians, engineers, and researchers working with systems of differential equations, particularly those involving algebraic constraints and seeking solutions in MATLAB.

member 428835
Hi PF!

I have a system of 4 first order linear ODE's, call each ODE ##\psi_1,...,\psi_4 : \psi = \psi(x,y,z,t)##. However, there are three algebraic variables (not ##x,y,z,t##, let's call them ##c_1,c_2,c_3##) that must be solved for as well, and I have three different (non-differential) equations to solve for them, call those ##\alpha_1, \,\, \alpha_2, \,\, \alpha_3 : \alpha_i = \alpha_i(c_1,c_2,c_3)##. I need to solve this system.

I have been using ode15s in MATLAB, a stiff solver. Typically this method works but since there are algebraic variables whose governing equations are not differential, the ode15s function is not working. Any ideas how to set this up?

Thanks so much!

Josh
 
Physics news on Phys.org
There are a few things I do not understand:
  • You say you have 4 ODEs. I imagine that ##\dot{x}(t) = \psi(x(t), y(t), z(t), t)## and similarly for ##\dot{y}## and ##\dot{z}##, but what is the purpose of ##\psi_4## then? Could you write down these ODEs a bit more explicitly? Is there a mass matrix present (see the ode15s documentation)? Is the mass matrix singular?
  • Then you have functions ##\alpha_i## that specify a relationship between the ##c_i##. Very well. However, it is not clear to me what couples ##x,y,z## and ##c_1,c_2,c_3##. What does the system of ODE have to do with the algebraic system? As it stands, I would say that you can solve these systems separately, but I don't think this is what you meant.
It seems you have some sort of DAE (again, see the ode15s documentation), but it is not clear to me yet what it exactly looks like.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 9 ·
Replies
9
Views
7K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
8
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K