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

Simulation of water flow into air

Simulation of water flow into air

Hi,

I'm trying to simulate a case where water is pumped from below sea level into an open tank/lake higher in the terrain. See figure below:

https://i.ibb.co/0QLMz7s/illustration-modelica.png

I'm trying to simulate this in Modelica (see below), but when I set the height difference in the pipe != 0 it does not simulate because of initial conditions (see error message just below). For reference, the pipe is set to not to allow reverse flow.

The following assertion has been violated during initialization at time 0.000000
til_LV1.flowModel.m_flows[1] > (-til_LV1.flowModel.m_flow_small)
Reversing flow occurs even though allowFlowReversal is false
simulation terminated by an assertion at initialization
Simulation process failed. Exited with code -1.

https://i.ibb.co/WPZs1XG/Screenshot-2021-07-01-111241.png

Are there any good way of simulating this setup in Modelica such that I don't get any reverse flow in the simulation?

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