CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Gas flow through a pipe

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 3, 2021, 16:55
Default Gas flow through a pipe
  #1
New Member
 
prab
Join Date: Jun 2021
Posts: 4
Rep Power: 4
aneps is on a distinguished road
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?
aneps is offline   Reply With Quote

Old   June 4, 2021, 20:29
Default
  #2
New Member
 
Lewis
Join Date: Jun 2021
Posts: 26
Rep Power: 4
cfdcheckers is on a distinguished road
Quote:
Originally Posted by aneps View Post
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?

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
cfdcheckers is offline   Reply With Quote

Old   June 4, 2021, 23:51
Default
  #3
Member
 
Michael Sukham
Join Date: Mar 2020
Location: India
Posts: 79
Rep Power: 6
2538sukham is on a distinguished road
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.
2538sukham is offline   Reply With Quote

Old   June 6, 2021, 00:27
Default
  #4
New Member
 
Lewis
Join Date: Jun 2021
Posts: 26
Rep Power: 4
cfdcheckers is on a distinguished road
Quote:
Originally Posted by 2538sukham View Post
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.

I don't think this is correct. At least in tutorials I've seen it for k, epsilon etc, only..
cfdcheckers is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 06:40
Two-phase flow in a circular horizontal pipe DmitryS Fluent Multiphase 0 May 17, 2014 16:22
Gas solid flow in a pipe with 90 bend pandaba FLUENT 0 September 14, 2010 01:43
Gas pressure question Dan Moskal Main CFD Forum 0 October 24, 2002 22:02
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) HB &DS CFX 0 January 9, 2000 13:19


All times are GMT -4. The time now is 08:38.