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

How to resolve boundary layer in OF ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2018, 18:01
Default How to resolve boundary layer in OF ?
  #1
New Member
 
Blue8655's Avatar
 
Join Date: Jun 2015
Location: Montreal
Posts: 11
Rep Power: 11
Blue8655 is on a distinguished road
Hi,

I tend to use high Reynolds wall functions in my simulations, but I'm in a case where it seems more appropriate to resolve the boundary layer. However, I don't know how to do this in OpenFOAM, I just don't know what boundary condition to use for solid walls. At first I thought I should use:

type fixedValue;
value uniform 0.01;

for k, epsilon and nut, but the simulation crashes or provides poor result. Moreover, I don't understand how some authors seem to avoid the use of wall functions, since (Launder and Spalding,74) say that the k-epsilon model is not defined near walls... An example of authors who solve the boundary in OF would be: " (Limane et al. 2015) Thermo-ventilation study by OpenFOAM of the airflow in a cavity with heated floor". They don't mention the BC used though.

Some people** talk about low-Re turbulence models but (Limane,2015) used buoyantSimpleFoam and other "regular" models (BSF, BPF, and BBPF) while keeping y+<11. So I'm quite confused right now!!

Any help appreciated! Pointing me to an older post is good too. I use OF-3.0.1. Thanks you very much.

**Solving boundary layer with k-e model
Blue8655 is offline   Reply With Quote

Old   May 4, 2018, 01:47
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
A wall is connected to wall functions, a patch is not. If you use patches at the boundaries, you may left out the wall functions without problems.

For an accurate result you need to resolve the boundaries down to the region y+=1, combined with very small time steps. Or in other words: You need to calculate a DNS simulation.

Another way would be to work with LES models and wall functions. If you use finer and finer meshes, more and more of the turbulence is calculated directly. But you have the wall function as a kind of safeguard.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   May 4, 2018, 11:36
Default
  #3
New Member
 
Blue8655's Avatar
 
Join Date: Jun 2015
Location: Montreal
Posts: 11
Rep Power: 11
Blue8655 is on a distinguished road
Thank you for reply Uwe. If I get you right... you are telling me that if in polyMesh/boundaries, I use 'patch' instead of 'wall' for those solid surfaces, my simulation will behave much better ? I never would have thought about this! I will try it soon.

P.S. Stupid question, but how can I search for an exact expression in the CFD-online forum ? (e.g. "wall function")
Blue8655 is offline   Reply With Quote

Old   May 4, 2018, 14:06
Default
  #4
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
'Much better' in the sense 'close to that what you wish.

It may be however, that wall functions give a amore reliable result (if you cannot afford the spatial and time resolution you need).
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   May 6, 2018, 19:59
Default
  #5
New Member
 
Blue8655's Avatar
 
Join Date: Jun 2015
Location: Montreal
Posts: 11
Rep Power: 11
Blue8655 is on a distinguished road
I tested your suggestion Piu58. It works. Using y+<1, flow behavior is coherent.
At first, OF complained about a wall function still present for alphaT.
( type compressible::alphatWallFunction; )
I used "calculated" instead, as for inlet and outlet. Worked.
I agree with your comment though that in most cases I will continue to use wall functions to limit computational requirements.
Thanks for your help. Much appreciated.
Blue8655 is offline   Reply With Quote

Reply

Tags
boundary layer., lrn, openfoam, resolve


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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
[snappyHexMesh] Help with Snappy: no layers growing GianF OpenFOAM Meshing & Mesh Conversion 2 September 23, 2020 09:26
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 05:39
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55


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