Differential algebraic equations

  • Context: Graduate 
  • Thread starter Thread starter ktsharp
  • Start date Start date
  • Tags Tags
    Differential
Click For Summary
SUMMARY

This discussion centers on solving a system of non-linear differential equations coupled with algebraic expressions using Matlab's decic.m function. The user is attempting to establish consistent initial conditions for variables W(x), C1(x), C2(x), C3(x), and V1(x) while encountering errors related to fixed components. The conversation highlights the importance of understanding the structure of differential algebraic equations (DAEs) and references the book by Hairer and Wanner, which provides foundational knowledge on the topic.

PREREQUISITES
  • Understanding of differential algebraic equations (DAEs)
  • Familiarity with Matlab's decic.m function
  • Knowledge of initial value problems in differential equations
  • Basic concepts of non-linear dynamics
NEXT STEPS
  • Study the book "Solving Ordinary Differential Equations" by Hairer and Wanner
  • Explore alternative DAE solvers available on Hairer's website
  • Learn about the structure and formulation of differential algebraic equations
  • Investigate error handling and debugging techniques in Matlab for DAE systems
USEFUL FOR

This discussion is beneficial for researchers, engineers, and students working with differential algebraic equations, particularly those using Matlab for numerical simulations and seeking to understand initial condition formulation.

ktsharp
Messages
8
Reaction score
0
Hi Everyone,

I am trying to solve a system of non-linear differential equations coupled to algebraic expressions:

W(x)' = f(Cn(x)), where n = 1:6
C1(x)' = f(Cn(x),V1(x),V2(x))
C2(x)' = f(Cn(x),V1(x),V2(x)),
C3(x)' = f(Cn(x),V1(x),V2(x)),
V1(x)'' = f(Cn(x),V1(x),V2(x)),
0 = gm(Cn(x),V1(x),V2(x)), where m = 1:4

I am trying to use Matlab's inbuilt decic.m function to calculate consistent initial conditions for each variable that will satisfy the system. I am splitting up the equation for V1(x)'' into two first order ODEs, and will declare V1(X)' as a variable. This makes a system of ten equations in total.

Decic takes two vectors which estimate the initial value of each variable and it's derivative. I would like to choose the initial values for W(0), C1(0), C2(0), C3(0) and V1(0). This I believe means they become fixed when passing them into the decic function. The rest of the values can be anything reasonable that is consistent with the system of equations.

The problem I have with Matlab is that the error I am receiving tells me to free up fixed components. I end up freeing all of them, i.e. fixed_yo = zeros(1,10) and fixed_yp0 = zeros(1,10) and I still receive the error telling me to free up 1 fixed component. I have no more components to free. What does this mean? How do I get around this issue, and/or is there an alternative method I could use to find consistent initial conditions?

Thanks so much for any helpful feedback, please ask any questions that may help.

kt
 
Physics news on Phys.org
Hi,

I just discovered this forum. When browsing around I saw this older question.

I had a lecture about DAEs but I could hardly remember the topics.

What is maybe of interest for you is the book from Hairer and Wanner
http://books.google.de/books/about/...erential_Equations.html?hl=de&id=m7c8nNLPwaIC

Also on the website from Hairer http://www.unige.ch/~hairer/software.html
an excellent fortran based solver is available. But be cautioned, there is also a Matlab version of the solver available but this code does not work correctly.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
693
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K