Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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.

Re: dealing with algebraic loops in the FMU

So you mean that the created FMU is dependent on OM?

Re: dealing with algebraic loops in the FMU

It depends on the OM runtime library, which may be statically or dynamically linked.

Re: dealing with algebraic loops in the FMU

What if the iterative method to solve algebraic loops does not converge? is there any way in the FMI to check that?

Re: dealing with algebraic loops in the FMU

Then the FMU will return a failure code.

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.

Re: dealing with algebraic loops in the FMU

but it should return FMIdiscard in case of divergency, based on the FMI standard manual.

There are 0 guests and 0 other users also viewing this topic
You are here: