|
[Sponsors] |
Implementation of Two Inlets in a Mixing Problem |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
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: 15 |
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 |
|
April 15, 2011, 13:49 |
|
#2 |
Senior Member
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 21 |
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: 15 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mixing occuring faster than the experiment problem | Lila | Main CFD Forum | 1 | September 5, 2007 10:48 |
Cross-Shaped Mixing | Park, Jaehong | FLUENT | 0 | March 10, 2004 23:07 |
Validation of shear mixing layer using kwsst | Samuell | FLUENT | 0 | September 9, 2003 22:46 |
Validation of shear mixing layer using kwsst | Samuell | FLUENT | 0 | September 9, 2003 22:27 |
Mixing time problem | Rai | FLUENT | 1 | January 15, 2003 03:43 |