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

How should I set these boundary conditions?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2011, 20:06
Default How should I set these boundary conditions?
  #1
New Member
 
S Park
Join Date: Oct 2011
Posts: 2
Rep Power: 0
CNT9 is on a distinguished road
Hi, I am trying to set up a very simple problem with
three inlets coming from left and one outlet going out (to right).
I want the inlets to have certain pressure values & speed.
For simplicity, I ran it with potentialFoam solver.
However, after running the code, it seems like the flow is not going through
the outlet; instead, it seems like the flow is flowing from motive inlet and
exiting to suction inlets.
Can someone help me how should I fix these boundary conditions?
Thank you in advance!

(suctiontop & suctionbottom & motive are inlets.)

For U:


FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField uniform (0 0 0);


boundaryField
{
down
{
type symmetryPlane;
}
outlet
{
type zeroGradient;
}
top
{
type symmetryPlane;
}
motive
{
type fixedValue;
value uniform (0 0 0);
}
suctiontop
{
type fixedValue;
value uniform (0 0 0);
}
suctionbottom
{
type fixedValue;
value uniform (0 0 0);
}
defaultFaces
{
type empty;
}
}


// ************************************************** *********************** //



For P:


FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField uniform 0;

boundaryField
{
down
{
type symmetryPlane;
}

top
{
type symmetryPlane; // zeroGradient; //symmetryPlane;
}


motive
{
type fixedValue ;
value uniform 5;
}

suctionbottom
{
type fixedValue ;
value uniform 1;
}

suctiontop
{
type fixedValue ; //zeroGradient;
value uniform 1;
}


outlet
{
type zeroGradient
}

defaultFaces
{
type empty;
}
}
CNT9 is offline   Reply With Quote

Old   October 19, 2011, 02:56
Default
  #2
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 15
stevenvanharen is on a distinguished road
Why do you want to have inlets with a fixed pressure? I assume u solve for incompressible flow.

To me it is not strange that the fluid is moving from the high pressure inlet to the low pressure inlets.

I think the standard combination is fixedValue U/zeroGradient p for inlets and zeroGradient U/fixedValue p for outlets.
stevenvanharen is offline   Reply With Quote

Old   October 19, 2011, 05:13
Default
  #3
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 20
romant is on a distinguished road
if you want pressure driven flows you should take a look at the appropriate boundary conditions,

pressureInletOutletVelocity
pressureInletUniformVelocity


and some of the others that have to do with pressure velocities, those will set your velocity due to a set pressure.

you can find the different boundary conditions under

/opt/openfoam201/src/finiteVolume/fields/fvPatchFields/derived
__________________
~roman
romant 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
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Boundary conditions for simpleSRFFoam cnsidero OpenFOAM Running, Solving & CFD 5 May 17, 2017 11:26
[Netgen] boundary conditions and mesh exporting vaina74 OpenFOAM Meshing & Mesh Conversion 2 May 27, 2010 09:38
How to set the changeable boundary conditions. raintung FLUENT 3 December 14, 2004 06:48


All times are GMT -4. The time now is 03:54.