I am about to model a more complicated system still only 3 states, taken from the literature.
To make the model transparent certain static equations are grouped into functions in the article.
These functions depend on the state and are later used to express the dynamic state equations.
Since these functions are slightly nested (i.e. one of the functions is used in another - but no circular use)
and I would like to simply code them as they are, I consider to express them as Modelica functions.
However, I strongly suspect that formulating static equations into functions will severly limit
the automatic symbolic equation handling.
So I guess one should just write up these long "function-expressions" as equations and do not use
the Modelic function concept (since functions are essentailly algorithms and assignments not equations).
My source of refernce is the book by Michael Tiller "Introduction to Physical Modeling with Modelica" but I
cannot see that he deals with this issue, which I think should be quite common. Or I misunderstand something.
I would appreciate some comment/advice.
- FMI Library
- Log in