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

Different Boundary Conditions for Velocity Components

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 1, 2011, 12:38
Default Different Boundary Conditions for Velocity Components
  #1
New Member
 
Fatemeh
Join Date: Apr 2011
Location: Boston
Posts: 9
Rep Power: 6
fpmhadi is on a distinguished road
Hi everybody,

I want to specify the boundary conditions in 0 directory files but Iíve got some problems.

I have a fixedWalls boundaryField in my 0/U file and I want to assign a zeroGradient boundary condition for Ux and a fixedValue for Uy, but I do not know how to do it.

This is what I have written already:

fixedWalls
{
U.component(0)
(
type zeroGradient;
)
U.component(1)
(
type fixedValue;
value uniform 0;
)
}

Thanks in advance for your help.
fpmhadi
fpmhadi is offline   Reply With Quote

Old   May 2, 2011, 10:00
Default
  #2
Member
 
Gregor Olenik
Join Date: Jun 2009
Location: http://greole.github.io/
Posts: 78
Rep Power: 8
gregor is on a distinguished road
Hi,
have a look at the slip boundary conditon

http://www.openfoam.com/docs/user/boundaries.php

gregor
gregor is offline   Reply With Quote

Old   May 2, 2011, 10:17
Default
  #3
New Member
 
Fatemeh
Join Date: Apr 2011
Location: Boston
Posts: 9
Rep Power: 6
fpmhadi is on a distinguished road
Hi,

Thank you very much Gregor.

I was reading that article to fix the problems in my cyclic boundaries!

I tried theses lines, however I am not sure about it:

fixedWalls
{
field U.component(0)
type zeroGradient
field U.component(1)
type fixedValue
value uniform 0;

}

Cheers,
fpmhadi
fpmhadi is offline   Reply With Quote

Old   May 2, 2011, 11:28
Default
  #4
Member
 
Gregor Olenik
Join Date: Jun 2009
Location: http://greole.github.io/
Posts: 78
Rep Power: 8
gregor is on a distinguished road
Quote:
Originally Posted by fpmhadi View Post
I was reading that article to fix the problems in my cyclic boundaries!
Now i am confused do you want to use cyclic boundaries or a slip condition

In case of slip boundary

fixedWalls
{
type slip;
}

should do.

gregor
gregor is offline   Reply With Quote

Old   May 2, 2011, 13:43
Default
  #5
New Member
 
Fatemeh
Join Date: Apr 2011
Location: Boston
Posts: 9
Rep Power: 6
fpmhadi is on a distinguished road
No, I was speaking about my two other boundary conditions.

My geometry is a square with two fixedWalls on top and bottom and two cyclic patches on left and right.

Until now I could fix the cyclic problem.

code:

patches
(
cyclic inletoutlet
(
(0 4 7 3)
(2 6 5 1)

)

wall fixedWalls
(
(3 7 6 2)
(0 4 5 1)
)

empty frontAndBack
(
(0 3 2 1)
(4 5 6 7)
)
);

However I really appreciate your help.

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
Impinging Jet Boundary Conditions Anindya Main CFD Forum 24 January 11, 2012 14:40
Domain Imbalance HMR CFX 3 March 6, 2011 21:10
boundary conditions and mesh exporting vaina74 Open Source Meshers: Gmsh, Netgen, CGNS, ... 2 May 27, 2010 09:38
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 6 April 17, 2010 23:40
A problem about setting boundary conditions lyang Main CFD Forum 0 September 19, 1999 18:29


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