CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM

Implementation of Two Inlets in a Mixing Problem

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 15, 2011, 14:12
Cool Implementation of Two Inlets in a Mixing Problem
  #1
New Member
 
Fatemeh
Join Date: Apr 2011
Location: Boston
Posts: 9
Rep Power: 5
fpmhadi is on a distinguished road
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
{
type zeroGradient;
}

outlet
{
type fixedValue;
value uniform 0;
}

fixedWalls
{
type zeroGradient;
}

frontAndBack
{
type empty;
}
}

0/U:
boundaryField
{

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

outlet
{
type zeroGradient;
}

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.

Would you please help me through it?

Thank you,
fpmhadi
Attached Images
File Type: png Screen shot 2011-04-15 at 1.09.59 PM.png (16.2 KB, 15 views)
fpmhadi is offline   Reply With Quote

Old   April 15, 2011, 14:49
Default
  #2
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 252
Rep Power: 11
MartinB is on a distinguished road
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
MartinB is offline   Reply With Quote

Old   April 15, 2011, 15:55
Default
  #3
New Member
 
Fatemeh
Join Date: Apr 2011
Location: Boston
Posts: 9
Rep Power: 5
fpmhadi is on a distinguished road
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
fpmhadi 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
Mixing occuring faster than the experiment problem Lila Main CFD Forum 1 September 5, 2007 11:48
Cross-Shaped Mixing Park, Jaehong FLUENT 0 March 11, 2004 00:07
Validation of shear mixing layer using kwsst Samuell FLUENT 0 September 9, 2003 23:46
Validation of shear mixing layer using kwsst Samuell FLUENT 0 September 9, 2003 23:27
Mixing time problem Rai FLUENT 1 January 15, 2003 04:43


All times are GMT -4. The time now is 09:42.