# Implementation of Two Inlets in a Mixing Problem

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

April 15, 2011, 13:12
Implementation of Two Inlets in a Mixing Problem
#1
New Member

Fatemeh
Join Date: Apr 2011
Location: Boston
Posts: 9
Rep Power: 8
Hi everybody,

I am trying to implement a mixing layer case in OpenFOAM.

My geometry is a square with two inlets, one in left hand side and one in right hand side and of course two outlets opposite to inlets in left and right. Upper and lower walls are fixedWalls. I have attached my mesh.

I edited 0/p and 0/U as follows:

0/p:
boundaryField
{

inlet
{
}

outlet
{
type fixedValue;
value uniform 0;
}

fixedWalls
{
}

frontAndBack
{
type empty;
}
}

0/U:
boundaryField
{

inlet
{
type fixedValue;
value uniform (1 0 0);
}

outlet
{
}

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

frontAndBack
{
type empty;
}
}

But, I know that there is something wrong in 0/U, because must assign different values for velocity U in right and left patches. The problem is that I do not know how to do it.

Thank you,
Attached Images
 Screen shot 2011-04-15 at 1.09.59 PM.png (16.2 KB, 17 views)

 April 15, 2011, 13:49 #2 Senior Member   Martin Join Date: Oct 2009 Location: Aachen, Germany Posts: 253 Rep Power: 15 Hi fpmhadi, you must name your inlets differently, like: "inlet_left" and "inlet_right". Then you can assign individual vectors for U. The patch definition with the new names must be done in your blockMeshDict, too. Martin

 April 15, 2011, 14:55 #3 New Member   Fatemeh Join Date: Apr 2011 Location: Boston Posts: 9 Rep Power: 8 Hi Martin, Thank you very much. I tried to name the inlets differently, but it did not work, because I did not know the correct syntax. I edited blockMeshDict, 0/p and 0/U as follows: blockMeshDict: patches ( patch inlet_right ( (5 11 9 3) ) patch inlet_left ( (0 6 8 2) ) 0/p: boundaryField { inlet_right { type zeroGradient; } inlet_left { type zeroGradient; } 0/U: boundaryField { inlet_right { type fixedValue; value uniform (-1 0 0); } inlet_left { type fixedValue; value uniform (1 0 0); } I really appreciate your instructions. fpmhadi

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post Lila Main CFD Forum 1 September 5, 2007 10:48 Park, Jaehong FLUENT 0 March 11, 2004 00:07 Samuell FLUENT 0 September 9, 2003 22:46 Samuell FLUENT 0 September 9, 2003 22:27 Rai FLUENT 1 January 15, 2003 04:43

All times are GMT -4. The time now is 01:46.