create DAE with Input

7 visualizaciones (últimos 30 días)
Kai
Kai el 28 de Nov. de 2014
Comentada: Torsten el 29 de Nov. de 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 comentarios
Kai
Kai el 28 de Nov. de 2014
So when i got a function u1(t) before, i replace it with interp1(...,...,t)?
Thanks!
Torsten
Torsten el 29 de Nov. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by