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

Wall functions - questions about implementation

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2018, 14:52
Default
  #41
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 20
romant is on a distinguished road
Quote:
Originally Posted by meihua View Post
I think the above thinking is correct. But I have a question, how to apply the wall shear stress into the momentum equation discretizations as a boundary condition?

Hi meihua,


The wall shear stress is implemented through the turbulent viscosity on the wall, since it is 0 on the wall, it can be re-used for other purposes.


You can find the implementation and derivation in the thread and post nutWallFunction


Cheers,
Roman
__________________
~roman
romant is offline   Reply With Quote

Old   October 10, 2018, 14:59
Default
  #42
New Member
 
meihuazhang
Join Date: Oct 2018
Posts: 8
Rep Power: 7
meihua is on a distinguished road
Hi Roman,

Thanks for your quick reply. I want to apply the LES wall model in OpenFoam. Now by the log law, I have calculated the wall shear stress. Then I would like to use this wall shear stress as a boundary condition for the LES. Now I am stuck in this step. Do you think this is possible? Could you show me some ideas or hints how to do it?

Thanks!
Meihua

Quote:
Originally Posted by romant View Post
Hi meihua,


The wall shear stress is implemented through the turbulent viscosity on the wall, since it is 0 on the wall, it can be re-used for other purposes.


You can find the implementation and derivation in the thread and post nutWallFunction


Cheers,
Roman
meihua is offline   Reply With Quote

Old   October 25, 2018, 15:43
Default
  #43
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 20
romant is on a distinguished road
Hi Meihua,


It should work the same as for the nut. I think what you have to do is take the nuSGSWallFunction instead of the nutWallFunction and use a similar approach. The nuSGS is 0 at the wall.


By taking a look at the nutWallFunction's implementation in the file, you might get an idea of how to do it in a modified nuSGSWallFunction



Best regards,
Roman
__________________
~roman
romant is offline   Reply With Quote

Old   June 14, 2019, 06:05
Default
  #44
Member
 
Join Date: Aug 2018
Posts: 85
Rep Power: 7
esha is on a distinguished road
Hi, I am trying to simulate viscoelastic fluid over a bluff body. I have udf for voscoelasticity (addition of polymers) also applying shear stress at wall. but now I want to apply on a bluff body having slip boundary.Can anyone please help me to write udf for Navier slip boundary.
esha is offline   Reply With Quote

Old   May 6, 2020, 10:11
Default
  #45
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Quote:
Originally Posted by AlmostSurelyRob View Post
The expression you give
k = utau²/sqrt(Cmu)
has been established for logarithmic subregion only (300>y+>30). This is also called constant shear layer (correct me if I am wrong!). Experiments show that it is an okay approximation for log region.
Hi, k = utau²/sqrt(Cmu) this expression should be right in the near wall cell. However, I checked the k value in the near wall cell, which is not consistent with that formula. In Spalding wall function, k is calculated by the own transport equation even in the near wall cell. Thus, how can we keep the expression k = utau²/sqrt(Cmu). Anybody know this issue?
qi.yang@polimi.it 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
UDF Wall functions in Fluent syler3321 Fluent UDF and Scheme Programming 2 September 20, 2014 12:37
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
wall functions and boundary conditions in OF 1.7.1 cristobal OpenFOAM 2 May 6, 2011 04:10
UDF for wall slipping HFLUENT Fluent UDF and Scheme Programming 0 April 27, 2011 12:03
k-omega simulation without wall functions vkrastev OpenFOAM 2 January 24, 2010 17:45


All times are GMT -4. The time now is 08:43.