SIMULINK - Solving Differential Equations

조회 수: 4 (최근 30일)
JOKY JOKE
JOKY JOKE 2011년 10월 18일
Hi,
1. is it possible to solve an IMPLICIT ordinary differential equation ODE in SIMULINK. If yes, do you have an implemented example? Which solvers can be used? If it is possible, is it normal that a message appears saying that an algebraic loop exists? Am I right, that an explicit/implicit solver has nothing to do with an explicit/implicit ODE?
2. is it possible to solve a DAE system in SIMULINK?
Thank you
  댓글 수: 2
Fangjun Jiang
Fangjun Jiang 2011년 10월 18일
What is your equation?
JOKY JOKE
JOKY JOKE 2011년 10월 19일
F(x1, x2, x3, .... xn, y, y') = 0
with x being defined by functions, which partly are also not explicit, for example:
x1 = f(x2, xn)
0 = F(x2, x4, xn)
x3 = f(x2, xn)
...

댓글을 달려면 로그인하십시오.

답변 (2개)

Walter Roberson
Walter Roberson 2011년 10월 19일
I do not know about Simulink directly; you could call a MATLAB function if you needed to. See
  댓글 수: 1
JOKY JOKE
JOKY JOKE 2011년 10월 19일
Yes, there should be a way in MATLAB. However, I have to implement it in SIMULINK directly. So MATLAB probably won't help.

댓글을 달려면 로그인하십시오.


Fangjun Jiang
Fangjun Jiang 2011년 10월 19일
Since you didn't provide an explicit example, it's hard to say. Maybe this post will give you a little bit of ideas.
The point is, find all the x', x'', y, y'' etc. in the equation, feed it to an Integrator block, the output will become x, x', y, y' respectively. Use other blocks such as Sum, Product, Gain, Constant to construct the equation. Set up proper initial values for those Integrator blocks. Then you can run simulations to see the dynamic response of every signal.
The solution is only to be numerical.

카테고리

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