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

Turbulent inlet for Openfoam 7

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By HPE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 4, 2020, 16:47
Default Turbulent inlet for Openfoam 7
  #1
New Member
 
Shawn
Join Date: Dec 2019
Posts: 5
Rep Power: 6
kennymhx is on a distinguished road
Hi all,

In my case, I want a turbulent inlet boundary condition for my simulation. I tried the turbulentinletPatch in Openfoam 7, and I tried the FilterNoise method. But they can not give me a right solution for my pressure field. I found the DFSEM (Divergence-free synthetic eddy method) could be used as the boundary condition at the inlet for LES. But it is just available in OpenFOAM v1906 (the one downloaded from www.openfoam.com).

It seems like this BC is not provided in OpenFOAM 7 downloaded from www.openfoam.org. So how can I get the DFSEM boundary condition for OF 7?

Thanks
kennymhx is offline   Reply With Quote

Old   January 4, 2020, 19:47
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Hi,

- Would you mind to tell us what 'FilterNoise' method is (just curiosity?
- Have you ever compiled a BC? Basically, copy-paste the OF.com BC into OF7, and recompilation of the BCs only should be enough.
- If there is no particular reason for using OF7, might consider to switch to OF.com version since they may update the content of this BC in the future, and then you would need to do the same transfer procedure again ( I think this option is the easiest).
HPE is offline   Reply With Quote

Old   January 13, 2020, 23:13
Default
  #3
Senior Member
 
Ruiyan Chen
Join Date: Jul 2016
Location: Hangzhou, China
Posts: 162
Rep Power: 10
cryabroad is on a distinguished road
Hi kennymhx,

I've had similar questions as yours. Note that .org versions of FOAM is a littble bit different from .com ones. If I remember correctly, their definition and use of random number generators are different, so it would be hard to directly compile the DFSEM boundary condition from .com FOAM in .org FOAM. I end up using the inflowGenerator from Rostock, search in the forum or google and you will find it. I've compiled it in OF-4.x with minor effort, and it works well.

A little bit more of the performance of turbulent boundary condtions, I think the DFSEM one gives better pressure behaviours at the inlet, because it is divergance free. The inflowGenerator from Rostock is not strictly divergence free (I'm not 100% sure on this). By the way, depending on what you are looking at, the turbulentInlet in FOAM should be good too. If you are considering an unconfined flow, the turbulence should be created by itself (by mixing for example) instead of being transported from the inlet, in this case turbulentInlet works fine. But if you are considering for example a confined flow (flow in a tube or something similar), a correct inflow turbulence is desired.
cryabroad is offline   Reply With Quote

Old   May 17, 2021, 17:29
Default
  #4
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
I kindly disagree. Never use the turbulentInlet boundary condition for inlet turbulence. It is just a bad naming, I am afraid. The turbulentInlet condition has in reality nothing to do with resolved turbulent fluctuations.
allanZHONG likes this.
HPE 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
interFoam wave propagation and explosion of Courant number and residuals ChiaraViola OpenFOAM Running, Solving & CFD 1 June 26, 2019 06:36
UDF for fully developed turbulent flow at inlet soroushsaberi FLUENT 0 May 28, 2014 18:00
Spatially Developing Turbulent Boundary Layer Inlet deji OpenFOAM 1 June 8, 2010 15:52
Specify turbulent inlet chris1980 OpenFOAM Running, Solving & CFD 4 August 29, 2006 04:11
inlet turbulent B.C. ROOZBEH FLUENT 3 September 25, 2003 08:07


All times are GMT -4. The time now is 07:28.