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

Correct boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2011, 13:04
Default Correct boundary condition
  #1
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi all,
I would like to perform this simulation using interFoam:
1) Inject a fluid in a certain domain (a box for example). My boundary conditon are (i guess standard BC for this case):

alpha1
inlet fixedValue
outlet inletOutlet

U
inlet fixedValue
outlet zeroGradient

p_rgh
inlet zeroGradient
outlet fixedValue

left and right simmetryPlane

2) After a certain period of time i would like to stop the injection and let the system relaxes. Now, i'm quite confused about which boundary condition for alpha1 U and p_rgh is better to use at the inlet. I do not want to put simply a "wall" boundary condition, because i guess it is not physical so, in your opinion, which are the correct boundary conditions to have no fluid that comes in from the inlet?

Then i have a second question. Is possibile with openFoam to switch (during the same simulation) from a boundary condition to an other?


thanks a lot

andrea
Andrea_85 is offline   Reply With Quote

Old   September 29, 2011, 15:07
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
1) why treating the inlet in relaxation time like a wall is not physical?

2) Are you familiar with groovyBC ? to implement ur boundary easily
nimasam is offline   Reply With Quote

Old   September 30, 2011, 03:57
Default
  #3
New Member
 
Lee Yin Jen
Join Date: May 2011
Location: Malaysia
Posts: 10
Rep Power: 14
YJ Lee is on a distinguished road
Hi,
Perhaps you can extend the inlet section to have an inflow pipe/duct of reasonable length. Then during relaxation time, apply wall boundary condition in the pipe/duct which is equivalent to pipe/duct closing?
Then there will be reasonable interaction between the domain of interest and the inlet section during relaxation.
YJ Lee is offline   Reply With Quote

Old   September 30, 2011, 04:06
Default
  #4
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi, and thanks for the answer.
1)Because physically there isn't a wall (if you think for example an experiment). simply i want no flow that comes in. Put a "wall" boundary condition is the only choise i have? Something like:

alpha1: zeroGradient
U: fixedValue (0 0 0)
p_rgh: zeroGradient or buoyantyPressure ??

2)no, i'm not familiar with groovyBC, but if you are saying that you can easily implement a sort of "switching BC", i wiil give a look for sure.

Best

andrea
Andrea_85 is offline   Reply With Quote

Old   September 30, 2011, 04:25
Default
  #5
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Another idea could be to impose a "correct" pressure gradient between the inlet and the outlet and then to simulate until nothing moves (until there is no flow from the inlet). Is possibile with OF?

andrea
Andrea_85 is offline   Reply With Quote

Old   September 30, 2011, 06:02
Default
  #6
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
Quote:
Originally Posted by Andrea_85 View Post
Hi, and thanks for the answer.
1)Because physically there isn't a wall (if you think for example an experiment). simply i want no flow that comes in. Put a "wall" boundary condition is the only choise i have? Something like:

alpha1: zeroGradient
U: fixedValue (0 0 0)
p_rgh: zeroGradient or buoyantyPressure ??
i feel you can consider for U zeroGradient or outletInlet condition

Quote:
2)no, i'm not familiar with groovyBC, but if you are saying that you can easily implement a sort of "switching BC", i wiil give a look for sure.
look in wiki and froum you can find many examples using it
nimasam is offline   Reply With Quote

Old   September 30, 2011, 09:34
Default
  #7
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hi,
i found the "timeVaryingUniformFixedValue" BC, which is probably what i was looking for (it seems easier than groovyBC). I set
alpha1 inlet inletOutlet, inletValue 1, value 1
outlet inletOutlet , inletValue 0, value 0

p_rgh inlet zeroGradient
outlet fixedValue

U inlet timeVaryingUniformFixedValue
outlet zeroGradient

and then i used the "ramp" file to switch between fixed velocity and zero velocity at the inlet. The inletOutlet BC at the inlet for alpha1 should ensure fixedValue =1 when the velocity is non-zero and zeroGradient when the velocity is zero. It seems to work.
thanks again

andrea
Andrea_85 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
External Radiation Boundary Condition (Two sided wall), Grid Interface CFD XUE FLUENT 0 July 8, 2010 06:49
vorticity boundary condition bearcharge Main CFD Forum 0 May 14, 2010 11:32
SymmetryPlane Boundary Condition raytracer OpenFOAM Running, Solving & CFD 0 July 11, 2008 17:04
CFX Solver : Sudden crash Hervé CFX 2 June 16, 2008 06:40
Rotating interpolated boundary condition hani OpenFOAM Running, Solving & CFD 0 July 4, 2006 07:09


All times are GMT -4. The time now is 03:26.