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

backflow and outlet boundary condition

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes
  • 1 Post By C-L
  • 4 Post By Tobi
  • 2 Post By Tobi
  • 1 Post By peob
  • 2 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2017, 07:43
Default backflow and outlet boundary condition
  #1
Member
 
Join Date: Apr 2016
Posts: 34
Rep Power: 10
Eman. is on a distinguished road
Hi,

I have a problem with my LES simulation. I have backflow at the outlet of my domain which results in instability and as a result Courant number increases very fast and the code blows up eventually. What is the best outlet b.c for velocity and pressure that are not reflective and allow the eddies to leave the domain without influencing way upstream? For the velocity, I thought of inletOutlet and advective b.c and for the pressure zeroGradient and waveTransmisive. It'd be appreciated if you could share your experience with me.

Thanks
Eman. is offline   Reply With Quote

Old   January 24, 2017, 08:41
Default
  #2
C-L
Member
 
Charlie Lloyd
Join Date: Feb 2016
Posts: 57
Rep Power: 10
C-L is on a distinguished road
I haven't used it myself but I think 'fixedmeanvalue' might be appropriate for the pressure boundary condition. Have a look through the below thread and see if you can find anyone with similar problems.

fixedMeanValue compilation in OpenFOAM 4.0
Eman. likes this.
C-L is offline   Reply With Quote

Old   January 24, 2017, 09:08
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
As the first guess I would fix the inflow (based on the fluxes). For that purpose you can use inletOutlet with an inletValue zero. The pressure could be fixed. However, I do not know your simulation settings and which kind of LES you are performing (incompressible / compressible / transonic / subsonic / hyper ...). So you have to decide which BC you want to use. I guess at the moment you have zeroGradient for the velocity. However, this is a common problem (reverse flow) and there are several possibilities.

  • BC
  • Geometry extension
  • etc.


Cheers...
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   January 24, 2017, 09:51
Default
  #4
Member
 
Join Date: Apr 2016
Posts: 34
Rep Power: 10
Eman. is on a distinguished road
Quote:
Originally Posted by C-L View Post
I haven't used it myself but I think 'fixedmeanvalue' might be appropriate for the pressure boundary condition. Have a look through the below thread and see if you can find anyone with similar problems.
Thanks. It sounds like a good idea. I will try that. By the way, do you know if it is the same as fixedMean b.c in OpenFoam 3?

Quote:
Originally Posted by Tobi View Post
As the first guess I would fix the inflow (based on the fluxes). For that purpose you can use inletOutlet with an inletValue zero. The pressure could be fixed. However, I do not know your simulation settings and which kind of LES you are performing (incompressible / compressible / transonic / subsonic / hyper ...). So you have to decide which BC you want to use. I guess at the moment you have zeroGradient for the velocity. However, this is a common problem (reverse flow) and there are several possibilities.

  • BC
  • Geometry extension
  • etc.


Cheers...

Thanks Tobias. I am doing an incompressible LES with Smagorinsky model and my inflow data is taken from a precursor simulation. You are right, I currently have zeroGradient for both velocity and pressure and it blows up very fast. I will try to use InletOutet for the velocity outlet patch.
Eman. is offline   Reply With Quote

Old   January 24, 2017, 15:17
Default
  #5
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Okay, but keep in mind: Setting p and U at one patch for incompressible cases is not a good thing in the numerical point of view. Good luck.

PS: If you are searching for explanations of the boundary conditions, look into the header files. There is a description
Eman. and guanjiang.chen like this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   February 3, 2017, 12:27
Default
  #6
New Member
 
Phil
Join Date: Mar 2011
Location: West Des Moines, Iowa, U.S.A.
Posts: 17
Rep Power: 15
peob is on a distinguished road
Eman,

You might take a look at the following thread...

mixed inflow/outflow downstream boundary condition question

I had stability issue with mixed inflow/outflow at an outflow boundary, and going to a totalPressure boundary has essentially rectified the problem.
Eman. likes this.
peob is offline   Reply With Quote

Old   February 3, 2017, 13:06
Default
  #7
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
I just want to mention something here. The totalPressureboundary condition should be used with a pressure based velocity boundary condition. However, the main problem in reverse flow is the following. If we have an inlet and an outlet and based on the flow structure, we have a back flow at the outlet, the main problem is that we do not know how the flow should flow inside the domain again. Of course based on the pressure field we can estimate something and hope that this is true but in fact we do not have any information. Simple example:
  • Assuming a particle loaded flow. At the outlet we have a reverse flow. However, the particle leaves the domain but in reality it can happen that the particle will re-enter the outlet again based on the reverse flow. But here we are limited because we cannot track the particle after it left the domain and therefore, we cannot say where it would/might re-enter in the outlet. I hope that it was clear.
However, I agree that a totalPressure boundary condition provides a better numerical system because it is a mixed boundary which is zeroGradient for each face where the flux is negative and is adjusted based on the flux if we have inflow in order to provide the correct pressure on the faces (totalPressure - kinetmaticPressure). This is adjusting the inflow in a way that it makes more sense than zeroGradient at all
rajibroy and Eman. like this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 21, 2017, 08:36
Default
  #8
New Member
 
Bo Kong
Join Date: Oct 2016
Location: China
Posts: 22
Rep Power: 10
huangfei is on a distinguished road
Hi Eman,
Could you tell me how did you solve this backflow problem? I encounter the same issue. BC at outlet I set as below:
U:zeroGradient,
p:fixedValue;
k:inletOutlet;
nusgs:zeroGradient;
huangfei is offline   Reply With Quote

Reply

Tags
advective bc, backflow, non reflecting boundary, outlet boundary


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
Convergence and backflow problem in cavitation simulation burakaltintas CFX 6 August 11, 2016 11:00
Convergence and backflow problem in cavitation simulation burakaltintas CONVERGE 2 August 9, 2016 08:42
Backflow option for pressure outlet boundary condition nwpukaka OpenFOAM 4 May 1, 2014 21:00
How to set the boundary condition of Pressure Outlet justeyong FLUENT 3 April 20, 2013 15:31
How to Set Pressure Outlet Boundary Condition freeday Fluent UDF and Scheme Programming 1 August 30, 2012 12:49


All times are GMT -4. The time now is 01:31.