nextfoam / baram

CFD for Everyone
https://baramcfd.org/
GNU General Public License v3.0
100 stars 17 forks source link

Pressure Outlet Needs Static Pressure Option #117

Open parisipa opened 2 months ago

parisipa commented 2 months ago

When declaring a pressure outlet boundary condition, the only option is to give the total pressure. However, this is not always known. There should be an option to give the static pressure, like in Ansys Fluent.

An alternative solution I have found at the moment is to set up the case with total pressure but then change the boundary condition through the command line just before the calculation starts. In this case, the change is made where the pressure would be calculated. It's replaced with an Outlet-pressure fixedValue.

Thanks in advance for taking this into account. I believe it's a minor fix that could go a long way in making the tool for accessible for industrial applications.

kdg5424 commented 2 months ago

Hello @parisipa. This is Donggyu.

The UI of BARAM makes the user confused. When flow goes out from the domain, the static pressure is defined as 0 Pa. And when flow comes in to the domain, the total pressure will be defined as 0 Pa. It's same as ANSYS Fluent. The code of background operates like I mentioned, but the UI makes the user confused. We'll fix the UI in the next version of BARAM.

Thank you for your suggestion.

Best regards

Donggyu Kim

parisipa commented 2 months ago

Hello, Donggyu.

So, just to confirm - if I impose total pressure 0 at the pressure-outlet declaration, the code will interpret this as gauge pressure = 0?

Thank you in advance.

Kind regards, Angie

kdg5424 commented 2 months ago

Hello Angie.

Yes you're right. If the backflow occurs, the total pressure would be zero. But if it's not, the gague pressure would be zero.

Thanks

Regards

Donggyu Kim