CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Bondary conditions in OpemFOAM

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 14, 2010, 06:36
Default Bondary conditions in OpemFOAM
  #1
New Member
 
satish
Join Date: Apr 2010
Posts: 6
Rep Power: 6
P.Satish is on a distinguished road
Hi All!

I am new to this openfoam and coming across small small doubts.

In fluent, if there is a simple pipe flow, with inlet velocity and pressure outlet boundary case. we specify directly the velocity value at inlet and pressure value(for example o Pa) at the outlet.

In Openfoam, for the input boundaries we have two different files U and P.

velocity (U) file
WALL
{
type fixedValue;
value uniform (0 0 0);
}
INLET
{
type fixedValue;
value uniform (50 0 0);
}
OUTLET
{
type zeroGradient;
}

Pressure (p) file

WALL
{
type zeroGradient;
}
INLET
{
type zeroGradient;
}
OUTLET
{
type fixedValue;
value 0;
}
}


here we are giving the info of pressure and velocity at all the boundaries in both U and p files.

Instead can I cant give this way?

velocity (U) file
WALL
{
type fixedValue;
value uniform (0 0 0);
}
INLET
{
type fixedValue;
value uniform (50 0 0);
}

Pressure (p) file

WALL
{
type zeroGradient;
}
OUTLET
{
type fixedValue;
value 0;
}

Giving only velocity data at inlet and pressure data at outlet?

Is it compulsory that we have to give the boundary conditions in U and p files at all the boundaries? or can I specify in the second way directly?

Please clarify my query.
P.Satish is offline   Reply With Quote

Old   May 14, 2010, 09:46
Default
  #2
Senior Member
 
Pavan
Join Date: May 2009
Location: Melbourne
Posts: 101
Rep Power: 7
rieuk is on a distinguished road
Are you sure that in Fluent when you don't specify a boundary value for p that it is not just assuming a boundary condition for you?

For my cases if I don't know the boundary value either set it to zeroGradient or free stream depending on the boundary.
rieuk is offline   Reply With Quote

Old   May 14, 2010, 09:57
Default
  #3
New Member
 
satish
Join Date: Apr 2010
Posts: 6
Rep Power: 6
P.Satish is on a distinguished road
In fluent, u enter the velocity at inlet and pressre value at outlet..it cacculate the values...we no need to specify the pressure and velocity values at all boundaries..

in Openfoam, we are specifying the values of pressure and velocity(whether its a fixed value or gradients) at all the boundaries...

my question is that compuslory that we define the values of p and U(a fixed value or gradient) at all boundaries?
P.Satish is offline   Reply With Quote

Old   May 14, 2010, 11:18
Default
  #4
New Member
 
Robert Langner
Join Date: Dec 2009
Location: Freiburg, Germany
Posts: 27
Rep Power: 7
Robat is on a distinguished road
Without identifing the walls the case is not completely defined, even Fluent needs to know the walls. So the programm assumes zeroGradient pressure and fixedValue(0) velocity. But may be inside it's blackBox without telling you.

You need to define every variable for every boundary in OpenFoam in respect to the manifoldness of variables you should create and their different behaviour.
e.g.: a wall is something different for heat transfer in compare to mass flux.
Robat is offline   Reply With Quote

Old   May 14, 2010, 11:27
Default
  #5
New Member
 
satish
Join Date: Apr 2010
Posts: 6
Rep Power: 6
P.Satish is on a distinguished road
wall boundaries are ok..but I am referring to the inlet and outlet boundaries....
P.Satish is offline   Reply With Quote

Old   May 14, 2010, 11:38
Default
  #6
New Member
 
Robert Langner
Join Date: Dec 2009
Location: Freiburg, Germany
Posts: 27
Rep Power: 7
Robat is on a distinguished road
Inlet velocity and outlet pressure is well defined.
This way is often recommended in this forum.
Robat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wind turbine simulation Saturn CFX 34 October 16, 2014 06:27
Runtime changing of bondary conditions evrikon OpenFOAM Running, Solving & CFD 2 November 24, 2009 20:53
bondary conditions yochule CFX 8 July 30, 2009 10:26
How to apply bondary conditions only having mesh. mitul CFX 1 February 10, 2007 05:28
A problem about setting boundary conditions lyang Main CFD Forum 0 September 19, 1999 19:29


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