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

Pipe flow using rhoSimpleFoam mot converging

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2015, 12:04
Default Pipe flow using rhoSimpleFoam mot converging
  #1
New Member
 
Aude
Join Date: May 2015
Posts: 5
Rep Power: 11
al0909 is on a distinguished road
Hello Foamers!!

I'm a newbie to OpenFOAM and i'm struggling a bit with a case I have to run for my PhD.

The idea is the following:
We are dealing with half a pipe (Diameter: 0.05m - Lenght: 0.4m) and we want to simulate the flow passing inside it and compare it with experimental data.

We are using air (which we consider to be following the perfect gas law), the exit Mach number should be 0.65 (so we go for a compressible solver --> rhoSimpleFoam), and the static pressure at the outlet should be the ambient pressure (98916Pa).
The walls of the pipe are considered adiabatic.

I measure a total pressure at the inlet as well as a total temperature.


Therefore: I am setting up the following files for my case:

0/p
----------------------------------------------
dimensions [1 -1 -2 0 0 0 0];

internalField uniform 98916;

boundaryField
{
inlet
{
type totalPressure;
p0 uniform 131392;
gamma 1.4;
}
lateralwall
{
type zeroGradient;
}
symmetrywall
{
type symmetryPlane;
}
outlet
{
type fixedValue;
value uniform 98916;
}

0/U
----------------------------------------------
dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 -217);

boundaryField
{
inlet
{
type fixedValue;
value uniform (0 0 -217);
}
lateralwall
{
type fixedValue;
value uniform (0 0 0);
}
symmetrywall
{
type symmetryPlane;
}
outlet
{
type zeroGradient;
}
}

0/T
----------------------------------------------
dimensions [0 0 0 1 0 0 0];

internalField uniform 277;

boundaryField
{
inlet
{
type totalTemperature;
T0 uniform 300;
gamma 1.4;
}
lateralwall
{
type zeroGradient;
}
symmetrywall
{
type symmetryPlane;
}
outlet
{
type zeroGradient;
}
}


I'm using a k-omega SST turbulence model, and running with rhosimpleFoam solver.
I don't get any error messages, but I cannot manage to make this computation converge.
My pressure distribution after some iterations increases and makes no sense (values close to 1.3e5 Pa) and neither does the velocity.
Is something wrong with my boundary conditions? Am I over-constraining or under-constrainig the problem?

Any help would be much appreciated.
Thanks in advance
Attached Images
File Type: jpg Screenshot.jpg (43.8 KB, 71 views)
File Type: jpg Screenshot-1.jpg (43.6 KB, 55 views)
al0909 is offline   Reply With Quote

Old   July 10, 2015, 05:47
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
Have you tried zeroGradient for the pressure inlet boundary condition? It is used in the tutorial for rhoSimpleFoam
jherb is offline   Reply With Quote

Old   July 10, 2015, 08:57
Default
  #3
New Member
 
Aude
Join Date: May 2015
Posts: 5
Rep Power: 11
al0909 is on a distinguished road
Yes I also tried imposing a zeroGradient at the pressure inlet BC.
The pressure field was still not making any sense.
But if I put a zeroGradient at my inlet for the pressure, I cannot impose a total pressure there. And this is one of the measurements I'd like to compare
al0909 is offline   Reply With Quote

Old   July 10, 2015, 13:03
Default
  #4
New Member
 
kh
Join Date: Jun 2015
Posts: 9
Rep Power: 11
KHoy is on a distinguished road
Hi,

Maybe the velocity is reversed. Now is negative in Z direction and your pressure BC has outlet on top?

K
KHoy is offline   Reply With Quote

Old   July 10, 2015, 20:05
Default
  #5
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
I think you cannot specify the (total) pressure and the velocity at the inlet. If you give the pressure at the outlet and the velocity at the inlet you get (total) pressure at the inlet from the simulation.
jherb is offline   Reply With Quote

Old   August 29, 2017, 13:48
Default rhoSimpleFoam Unexpected Results for fast, hot gas in 10mm pipe elbow
  #6
New Member
 
Annonymouse
Join Date: Jul 2017
Posts: 5
Rep Power: 9
ben_ is on a distinguished road
Sorry for posting on this thread, I thought I had started a new one. I will post my question there
Attached Images
File Type: png temperature.PNG (35.0 KB, 33 views)
File Type: png mesh.PNG (54.1 KB, 35 views)
ben_ is offline   Reply With Quote

Reply

Tags
compressible flow, openfoam 2.1.x, pipe flow


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 07:40
compressible flow calculation error using rhoSimpleFoam solver student4326 OpenFOAM Running, Solving & CFD 7 November 2, 2015 12:34
High values of heat transfer coefficient for laminar flow in pipe Allankey CFX 2 May 28, 2014 13:44
Pipe Flow Saima CFX 1 January 10, 2011 17:41
Turbulence in a pipe flow JM Main CFD Forum 4 December 21, 2006 05:04


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