create DAE with Input

8 views (last 30 days)
Kai
Kai on 28 Nov 2014
Commented: Torsten on 29 Nov 2014
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 Comments
Kai
Kai on 28 Nov 2014
So when i got a function u1(t) before, i replace it with interp1(...,...,t)?
Thanks!
Torsten
Torsten on 29 Nov 2014
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.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!