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

fluid working?

fluid working?

I tried a very simple pump from one tank to another with the fluid package, and it hangs forever trying to generate the simulator for that.

Re: fluid working?

Did you use +d=scodeInstShortcut? That flag is required for most Fluid models.

Re: fluid working?

Hello sjoelund.se

Could you explain the scodeInstShortcut flag?

I have tried to find any doc about it unsuccessfully.

Best regards
Koldo

Re: fluid working?

It's a workaround until OpenModelica can properly handle redeclares. As far as I know, the flag renames some of the redeclared classes in order to make them unique.

Re: fluid working?

You can look at https://test.openmodelica.org/~marsj/MS … rsive.html to see which examples in the standard library are marked yellow. They require the flag in order to compile a simulation executable.

There are 0 guests and 0 other users also viewing this topic