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