|
[Sponsors] |
June 3, 2021, 17:55 |
Gas flow through a pipe
|
#1 |
New Member
prab
Join Date: Jun 2021
Posts: 4
Rep Power: 5 |
Hello everyone, I am a newbie to Openfoam. Rather than just following lessons, I am right away into making the models I am interested. I made a simple pipe geometry with air flow. I know the pressure at the entrace (2.5 mbar) and at the exit (0 mbar).
After making geometry and meshing with salome, I imported the UNV mesh file to openfoam. I am using icoFOAM solver from the example (cavity).I modified the 'p' file as boundaryField { Inlet { type fixedValue; value uniform 8194.8; } Outlet { type fixedValue; value 0; } Walls { type zeroGradient; } } I am wondering if this is the right way to apply fixed pressure at the inlet and outlet. 2.5 mbar means 25.49 Kg/m^2. This divided by density at this pressure will give 8194.8. The result I get is quite strange. Obviously wrong!. Can anyone tell me is this correct way to simulate if we know only the inlet and outlet pressure (no velocity information). This is more practical case, because we measure only pressure with a gauge at the both ends. Is it correct to use icoFoam for this example? |
|
June 4, 2021, 21:29 |
|
#2 | |
New Member
Lewis
Join Date: Jun 2021
Posts: 26
Rep Power: 5 |
Quote:
Hi, I'm a newbie as well but I think static pressure BC at both inlet and outlet is not advised - it becomes very difficult for the solver to manage the errors and it can blow up. Just what I have been reading on the forum and elsewhere. Does your case run? Can you share more details? I'm also learning and trying to run a pressure driven flow case. But my setup crashes: Correct BCs for known outlet conditions and unknown inlet conditions |
||
June 5, 2021, 00:51 |
|
#3 |
Member
Michael Sukham
Join Date: Mar 2020
Location: India
Posts: 85
Rep Power: 6 |
In case we dont about a boundary condition, i think we normally use $calulated so that the solver will calculate the pressure or velocity at the prescribed boundary. I might be wrong so you can check it out in the documentation.
|
|
June 6, 2021, 01:27 |
|
#4 | |
New Member
Lewis
Join Date: Jun 2021
Posts: 26
Rep Power: 5 |
Quote:
I don't think this is correct. At least in tutorials I've seen it for k, epsilon etc, only.. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issues on the simulation of high-speed compressible flow within turbomachinery | dowlee | OpenFOAM Running, Solving & CFD | 11 | August 6, 2021 07:40 |
Two-phase flow in a circular horizontal pipe | DmitryS | Fluent Multiphase | 0 | May 17, 2014 17:22 |
Gas solid flow in a pipe with 90 bend | pandaba | FLUENT | 0 | September 14, 2010 02:43 |
Gas pressure question | Dan Moskal | Main CFD Forum | 0 | October 24, 2002 23:02 |
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) | HB &DS | CFX | 0 | January 9, 2000 14:19 |