- Index
- » Programming
- » Modelica Language
- » dealing with algebraic loops in the FMU
dealing with algebraic loops in the FMU
dealing with algebraic loops in the FMU
When an algebraic loop appears in the sorted generated code of the FMU, how the FMU solves the equations? Is there any internal iterative solver like newton-raphson inside the FMU or it makes calls to the OM solvers' library?
Re: dealing with algebraic loops in the FMU
It calls the chosen NLS solver in the OM runtime.
- sjoelund.se
- 1700 Posts
Re: dealing with algebraic loops in the FMU
It depends on the OM runtime library, which may be statically or dynamically linked.
- sjoelund.se
- 1700 Posts
Re: dealing with algebraic loops in the FMU
Then the FMU will return a failure code.
- sjoelund.se
- 1700 Posts
Re: dealing with algebraic loops in the FMU
i checked the fmi documentation and there is a status, fmiDiscard, which should be returned by the FMU in case when the interative algorithms are not converged. is this status also returned by FMU created by OM?
Re: dealing with algebraic loops in the FMU
It returns fmiError if I read it correctly. You could just create a model with an unsolvable nonlinear system and try for yourself though.
- sjoelund.se
- 1700 Posts
- Index
- » Programming
- » Modelica Language
- » dealing with algebraic loops in the FMU