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

Freestream boundary condition

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

Like Tree31Likes
  • 1 Post By YJ Lee
  • 22 Post By fcollonv
  • 7 Post By YJ Lee
  • 1 Post By ASo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2011, 00:03
Default Freestream boundary condition
  #1
New Member
 
Lee Yin Jen
Join Date: May 2011
Location: Malaysia
Posts: 10
Rep Power: 15
YJ Lee is on a distinguished road
Dear FOAMers,

Hi, I'm pretty new to OpenFOAM and CFD. One question I have is regarding Freestream boundary condition - how exactly does it work?

Specifically, I tried to run an external aerodynamics case, using fixedValue for velocity, nut and nuTilda at outer boundary, zeroGradient for pressure at outer boundary; simpleFOAM, S-A turbulence. The results are rather unphysical and diverging.

However, following the airfoil example for simpleFoam and using freestream boundary condition, the simulation seems to be more reasonable and without divergence. My question is, how does freestream boundary condition differ from fixed values?

Thanks, FOAMers!
amuzeshi likes this.
YJ Lee is offline   Reply With Quote

Old   October 7, 2011, 11:54
Default
  #2
Member
 
Frederic Collonval
Join Date: Apr 2009
Location: Technische Universitaet Munich - Lehrstuhl fuer Thermodynamik
Posts: 53
Rep Power: 17
fcollonv is on a distinguished road
Hello Lee,

The freestream BC has the type inletOutlet meaning that it looks locally (for every face of the patch) at the mass flow rate. And if the flow is going outside the boundary will be locally zerogradient, if it is going inside the boundary will be locally fixedValue.
The freestreampressure BC is a zeroGradient BC but it fixes the flux on the boundary to be rho*Sf*freestreamValue.

Good luck

Frederic
owayz, mechy, iamed18 and 19 others like this.
__________________
Frederic Collonval
Technische Universität München
Thermodynamics Dpt.
fcollonv is offline   Reply With Quote

Old   October 8, 2011, 11:37
Default
  #3
New Member
 
Lee Yin Jen
Join Date: May 2011
Location: Malaysia
Posts: 10
Rep Power: 15
YJ Lee is on a distinguished road
Thanks, Frederic! Think I get the point now...
YJ Lee is offline   Reply With Quote

Old   December 11, 2012, 12:29
Default
  #4
Member
 
Malik
Join Date: Dec 2012
Location: Austin, USA
Posts: 53
Rep Power: 14
malaboss is on a distinguished road
Hi,
Thank you for the explanation. If i am right the difference between a freestream BC and a fixedValue BC is that for fixed value there are constraints on each vector of the velocity field, while with freeStream we have a constraint only for the flux.

This is why the solution sounds more physical ?
malaboss is offline   Reply With Quote

Old   December 19, 2012, 22:18
Default
  #5
New Member
 
Lee Yin Jen
Join Date: May 2011
Location: Malaysia
Posts: 10
Rep Power: 15
YJ Lee is on a distinguished road
Hi, malaboss

Freestream BC is like a hybrid fixedValue and zeroGradient boundary condition. It behaves like a zeroGradient when fluid is flowing out of the boundary face, but behaves like a fixedValue when fluid is not flowing out.

So, instead of fixedValue that imposes its constant value regardless of situation, freestream is more flexible, doing whatever is more physically realistic, so to say.
YJ Lee is offline   Reply With Quote

Old   October 8, 2014, 08:05
Default
  #6
Senior Member
 
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17
ziemowitzima is on a distinguished road
Hi,
I am using currently freestream BC for the flow in the tunnel (channel).
Is it an appropriate BC for such flow ?

In short, there is large tunnel (3m in diameter) flow is from left to right (inlet, outlet with freestream BC) but inside the tunnel there is additional small inlet with some mass flow specified.

thanks
ziemowitzima is offline   Reply With Quote

Old   May 5, 2015, 05:00
Default
  #7
ASo
New Member
 
Join Date: Mar 2015
Location: Brest, France
Posts: 15
Rep Power: 11
ASo is on a distinguished road
Hi everyone,

Is it possible to use the freestream BC (to simulate a external hydrodynamic case) in 3D.
In this case what is the good boundary condition to use for the frontAndBack ?

Thanks for answers
Agavi likes this.
ASo is offline   Reply With Quote

Old   June 4, 2015, 09:03
Default
  #8
ASo
New Member
 
Join Date: Mar 2015
Location: Brest, France
Posts: 15
Rep Power: 11
ASo is on a distinguished road
Quote:
Originally Posted by fcollonv View Post
Hello Lee,

The freestream BC has the type inletOutlet meaning that it looks locally (for every face of the patch) at the mass flow rate. And if the flow is going outside the boundary will be locally zerogradient, if it is going inside the boundary will be locally fixedValue.
The freestreampressure BC is a zeroGradient BC but it fixes the flux on the boundary to be rho*Sf*freestreamValue.

Good luck

Frederic
Hi all,

Could you explain me what is Sf.

In advance, many thanks
ASo is offline   Reply With Quote

Old   July 7, 2015, 03:04
Default
  #9
New Member
 
Junshin Park
Join Date: Oct 2013
Posts: 6
Rep Power: 13
lonelywing is on a distinguished road
Quote:
Originally Posted by ASo View Post
Hi all,

Could you explain me what is Sf.

In advance, many thanks
As far as I know, Sf means the surface area of a face of the cell.
lonelywing is offline   Reply With Quote

Old   December 19, 2016, 10:08
Default 3D airfoil mesh
  #10
New Member
 
salman sadeghi
Join Date: Dec 2016
Posts: 1
Rep Power: 0
salisadeghi is on a distinguished road
Hi everyone, i import .msh file (3D Cgrid mesh for airfoil in gambit) in openfoam and i got this error: {illegal cell label -1 in neighbour addressing for face 0} is it all about boundary condition?
the main question is haw to define that in 3D gambit to not face this error?or is it possible to import just geometry and mesh without boundary and then define it just in openfoam?

thanks all of you in advance
salisadeghi is offline   Reply With Quote

Old   July 19, 2017, 05:36
Default
  #11
hfs
Member
 
Join Date: Jul 2012
Posts: 66
Rep Power: 14
hfs is on a distinguished road
Quote:
Originally Posted by fcollonv View Post
Hello Lee,

The freestream BC has the type inletOutlet meaning that it looks locally (for every face of the patch) at the mass flow rate. And if the flow is going outside the boundary will be locally zerogradient, if it is going inside the boundary will be locally fixedValue.
The freestreampressure BC is a zeroGradient BC but it fixes the flux on the boundary to be rho*Sf*freestreamValue.

Good luck

Frederic
Quote:
Originally Posted by YJ Lee View Post
Hi, malaboss

Freestream BC is like a hybrid fixedValue and zeroGradient boundary condition. It behaves like a zeroGradient when fluid is flowing out of the boundary face, but behaves like a fixedValue when fluid is not flowing out.

So, instead of fixedValue that imposes its constant value regardless of situation, freestream is more flexible, doing whatever is more physically realistic, so to say.

Thank you both for the explanation.
I want to use freestreampressure but combined with having the pressure prescribed as a value:
"Prescribed pressure; with allowed in/outflow reversal"
Is this possible in OpenFoam? Thanks,

PS: more details:
It is a wind engineering in-compressible flow simulation.
I have a prescribed inlet velocity BC (Fluctuating Inlet). We usually combine this with a zeroGradient Pressure BC on the inlet.
I want to have Inlet/Outlet condition on the Top, Sides and Outlet. However, a pressure value should be described on some boundary. Usually we use a fixedValue 0 for pressure. Is there a way to combine this with freestreampressure?
hfs is offline   Reply With Quote

Old   August 27, 2018, 01:32
Default regarding difference between freestream and inletoutlet boundary condition
  #12
Member
 
ijaz fazil
Join Date: Apr 2013
Location: Singapore
Posts: 73
Rep Power: 13
er_ijaz is on a distinguished road
hi all,
I apologies for reopening this topic after a long time.


I have doubt what is the difference between freestream and inletoutlet bC


In inletOutlet BC also when the flow is out of the domain it will be zerogradient while the flow is into the domain it is fixed value.


Then what is the difference between both condition.
er_ijaz is offline   Reply With Quote

Old   March 10, 2019, 05:00
Default
  #13
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8
calf.Z is on a distinguished road
Quote:
Originally Posted by er_ijaz View Post
hi all,
I apologies for reopening this topic after a long time.


I have doubt what is the difference between freestream and inletoutlet bC


In inletOutlet BC also when the flow is out of the domain it will be zerogradient while the flow is into the domain it is fixed value.


Then what is the difference between both condition.
I am also interested in this topic. Have you done some further research?
calf.Z is offline   Reply With Quote

Old   October 24, 2019, 04:44
Default Inletoutlet also provide same definition
  #14
Member
 
ijaz fazil
Join Date: Apr 2013
Location: Singapore
Posts: 73
Rep Power: 13
er_ijaz is on a distinguished road
Quote:
Originally Posted by YJ Lee View Post
Hi, malaboss

Freestream BC is like a hybrid fixedValue and zeroGradient boundary condition. It behaves like a zeroGradient when fluid is flowing out of the boundary face, but behaves like a fixedValue when fluid is not flowing out.

So, instead of fixedValue that imposes its constant value regardless of situation, freestream is more flexible, doing whatever is more physically realistic, so to say.



hi then what is the difference between freestream and inletoutlet because inletoutlet also same definition, when fluid is going out zerogradient while when the fluid is into the domain fixed value.


So what is the difference between two?
er_ijaz is offline   Reply With Quote

Old   June 5, 2020, 03:54
Default
  #15
New Member
 
Hailong
Join Date: Sep 2019
Posts: 8
Rep Power: 7
nilvxingren is on a distinguished road
Quote:
Originally Posted by fcollonv View Post
Hello Lee,

The freestream BC has the type inletOutlet meaning that it looks locally (for every face of the patch) at the mass flow rate. And if the flow is going outside the boundary will be locally zerogradient, if it is going inside the boundary will be locally fixedValue.
The freestreampressure BC is a zeroGradient BC but it fixes the flux on the boundary to be rho*Sf*freestreamValue.

Good luck

Frederic
Hello,fcollonv. Do you know the difference between freestream and inletoutlet ?
nilvxingren is offline   Reply With Quote

Reply

Tags
boundary condition, freestream, openfoam 2.0.x

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Domain Imbalance HMR CFX 5 October 10, 2016 06:57
Can anyone give me some hint on how to make traction free boundary condition? poplar OpenFOAM 3 January 14, 2015 03:37
Boundary Conditions Thomas P. Abraham Main CFD Forum 20 July 7, 2013 06:05
Setting outlet Pressure boundary condition using CAFFA code Mukund Pondkule Main CFD Forum 0 March 16, 2011 04:23
How to set boundary condition in Fluent for the fo Peiyong FLUENT 1 November 10, 2006 12:44


All times are GMT -4. The time now is 11:54.