create DAE with Input

7 Ansichten (letzte 30 Tage)
Kai
Kai am 28 Nov. 2014
Kommentiert: Torsten am 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 Kommentare
Kai
Kai am 28 Nov. 2014
So when i got a function u1(t) before, i replace it with interp1(...,...,t)?
Thanks!
Torsten
Torsten am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by