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

Constant vs Real Expression

Constant vs Real Expression

Hi there!

The problem I have is as follows: I am using a mass flow source of a certain fluid, and when I have an external connector setting it to 0.5 kg/s, the model works fine. However if I add a Real expression with "if time < 12000 then 0.5 else mflow3" (being mflow3 some other flow calculated in the model), the model stops at second 2 (does not even reach the event!).

Why can this be happening? I could understand that the event causes the problem, but the model is stopping even before that happens.

Thanks in advance

G

Re: Constant vs Real Expression

was there any error reported on OMEdit or on simulation output window?

Re: Constant vs Real Expression

Simulation output window!

Re: Constant vs Real Expression

It would be great if you couldgive some simple code that represent what you are trying to do and also maybe give the information on what error exactly that OMEdit was giving you. It would help other to understand your problem better.

best regards

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