create DAE with Input

조회 수: 7 (최근 30일)
Kai
Kai 2014년 11월 28일
댓글: Torsten 2014년 11월 29일
Hello,
I want to solve a DAE problem with the ODE solvers. I try to create my system like shown here:
(ode15i example)
My Problem, I have Inputs for my system, which are actually functions. They get passed t and return a value out of an array.
How do i declare these functions? When im at the point where i want to use "daeFunction" i get an error "Found the symbolic object ... in the DAES. Only variables and declared parameters may be symbolic."
Can anyone help me?
Thanks
  댓글 수: 3
Kai
Kai 2014년 11월 28일
So when i got a function u1(t) before, i replace it with interp1(...,...,t)?
Thanks!
Torsten
Torsten 2014년 11월 29일
If you have functions which enter the DAE system, why don't you just call them in the ODE routine for the time the ODE integrator requires and use the values returned as input for your ODE system ?
Best wishes
Torsten.

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

답변 (0개)

카테고리

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