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

How to prevent flow from reversing?

How to prevent flow from reversing?

Hello everyone,

I have two connectors with the same declaration; i.e one flow and one potential variables

Connector1
flow SI.MassFlowRate Qm;
        SI.Pressure p;
End Connector1;


Connector2
flow SI.MassFlowRate Qm;
        SI.Pressure p;
End Connector2


Except the name of the connectors (connector1 as incoming and connector2 as leaving flow), the rest is the same in both cases.

Since the flow is reversing while simulating, despite I followed the signe convention (sume of in and out is zero), I tried also using input and output for the flow in each connector. The flow still reversing at some junctions.

Can anyone help me what I should consider in this situation?
PS: I am in the learning curve to apply modelica for a real project.

Thanks





Re: How to prevent flow from reversing?

Is this forum still active ?

I did hard coding through local declaration.  It does work anyway.

Re: How to prevent flow from reversing?

The forum is still active but most of our developers are in holidays. I'm glad you found a solution.

Also, this is a modeling questions and maybe is better to ask these kind of questions on:
http://stackoverflow.com/questions/tagged/modelica
as we're mostly into compiler development and don't know that much about modeling.

Cheers,
Adrian Pop/

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