Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

Modelica: Fluid from source, valve, to sink

asked 2019-06-17 16:15:39 -0600

first1's avatar

updated 2019-06-17 17:54:29 -0600

This next model I'm working on has a source with high pressure driving the movement of gas to the low pressure sink. In between the source and sink is a linear valve which I plan to be a control valve in the future. So source--> valve--> sink. The model will not solve because there exists one more variable than the total number of equations. The unknown variable is valve.port_a.m_flow.

It is not clear where or how I would define this variable. I thought that the pressure difference between source and sink would be enough to drive the movement of fluid. I did, however, see under the valve advanced settings that m_flow = port_a.m_flow. Not sure if that helps but I'm still confused.

valveTest

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2019-06-17 18:03:59 -0600

You wrote "In between the source and sink is a linear valve which I plan to be a control valve in the future". If you used a valve, did you connect its control input signal? For getting started, see also https://simulationresearch.lbl.gov/mo..., the references in there, and https://simulationresearch.lbl.gov/mo...

edit flag offensive delete link more
0

answered 2019-06-17 18:36:55 -0600

first1's avatar

I actually just realized I was using the wrong source signal and now it is working. Currently using a step signal. Thanks again!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2019-06-17 16:15:39 -0600

Seen: 402 times

Last updated: Jun 17 '19