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

Problem in exporting to FMU

Problem in exporting to FMU

Good afternoon,

I have got problem in exporting classes with electrical ports to FMU. It seems that since ports are not assumed as input or outputs it causes a "Too many equations" error and also "Found equations without time-dependent variables: n.i = 0.0"

I guess I need to define new OnePort and TwoPort interfaces with current and voltage as outputs and inputs and use them instead of available interfaces. However, I am wondering if there is a better way to fix the problem?

Best regards,
Arash

Re: Problem in exporting to FMU

FMUs have fixed causality with clear inputs and outputs.
In general I create another model in which I add RealInput ports and RealOutput ports which you can connect to your internal model (via equations or connects).

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