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

Different Boundary Conditions for Velocity Components

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By fpmhadi
  • 1 Post By fpmhadi

Reply
 
LinkBack Thread Tools Search this Thread 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: 15
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
amuzeshi likes this.
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: 89
Rep Power: 16
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: 15
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
amuzeshi likes this.
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: 89
Rep Power: 16
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: 15
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


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
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 13:06
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
Impinging Jet Boundary Conditions Anindya Main CFD Forum 25 February 27, 2016 12:58
[Netgen] boundary conditions and mesh exporting vaina74 OpenFOAM Meshing & Mesh Conversion 2 May 27, 2010 09:38
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 01:05.