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

Boundary Conditions for Converging Pipe

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2009, 10:09
Default I'm testing OpenFoam for a sim
  #1
New Member
 
Sami Lakka
Join Date: Mar 2009
Posts: 6
Rep Power: 17
sami_lakka is on a distinguished road
I'm testing OpenFoam for a simple pipe flow case which consists from inlet, sudden contraction and outlet. The flow is laminar and I use icoFoam-solver.

My B.C for U is fixedValue (1) for inlet and zeroGradient for outlet.

B.C for pressure is zeroGradient for inlet and fixedValue (0) for outlet.

I would expect the flow speed to increase in the contraction but it is the same as in the inlet. I'm probably making a stupid mistake with boundary conditions so could somebody point out my mistake so I can go and cry in the corner.
sami_lakka is offline   Reply With Quote

Old   March 5, 2009, 10:23
Default Your BCs seem correct. What ab
  #2
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Your BCs seem correct. What about the BC at the walls?

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   March 5, 2009, 10:36
Default Walls are fixed value 0 for U
  #3
New Member
 
Sami Lakka
Join Date: Mar 2009
Posts: 6
Rep Power: 17
sami_lakka is on a distinguished road
Walls are fixed value 0 for U and zero gradient for p.

Here is the complete B.C definition (for U):

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
inlet
{
type fixedValue;
value uniform (0.088419 0 0);
}

outlet
{
type zeroGradient;
}

beforeNozzle
{
type fixedValue;
value uniform (0 0 0);
}

afterNozzle
{
type fixedValue;
value uniform (0 0 0);
}

nozzle
{
type fixedValue;
value uniform (0 0 0);
}

frontAndBack
{
type empty;
}
}

And for p:

dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
inlet
{
type zeroGradient;
}

outlet
{
type fixedValue;
value uniform 0;
}

beforeNozzle
{
type zeroGradient;
}

afterNozzle
{
type zeroGradient;
}

nozzle
{
type zeroGradient;
}

frontAndBack
{
type empty;
}
}
sami_lakka is offline   Reply With Quote

Old   March 5, 2009, 14:50
Default Could you post a picture of yo
  #4
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Could you post a picture of your results? Its hard to figure out what could be wrong in your setup.

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   March 6, 2009, 05:10
Default I managed to solve this. It wa
  #5
New Member
 
Sami Lakka
Join Date: Mar 2009
Posts: 6
Rep Power: 17
sami_lakka is on a distinguished road
I managed to solve this. It was an error in my paraFoam visualization. I hadn't chosen a time step when I loaded the case. Instead I just pressed accept when paraFoam loaded. When I selected a time step using the slider the visualization shows correct values. Whatever the logic is behind this, I don't understand it.
sami_lakka 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
Burgerbs equation non constant Boundary Conditions Initial Conditions arkangel OpenFOAM Running, Solving & CFD 1 October 2, 2008 15:48
Boundary Conditions for Stratified Pipe Flow Zhang FLUENT 0 June 30, 2008 14:33
periodic conditions, temperature not converging Husain CFX 3 April 29, 2007 20:21
Integral boundary conditions turbulent intensitylength boundary conditions olesen OpenFOAM Running, Solving & CFD 0 July 27, 2006 08:18
Pipe Flow Boundary conditions Kunal Jain Main CFD Forum 0 September 4, 2001 21:52


All times are GMT -4. The time now is 21:19.