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

question about how wall functions are implemented

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2015, 14:59
Default question about how wall functions are implemented
  #1
New Member
 
Luis Alberto
Join Date: Aug 2015
Location: Spain
Posts: 8
Rep Power: 11
LuisAlberto is on a distinguished road
Hello everybody,

I am trying to go into how Wall Functions are implemented in detail.

turbulence->correct() is called by the solver. In such function (let's think about kEpsilon.C for instance), the dissipation equation is solved first and the kinematic energy equation afterwards.

When using a standard Wall Function, epsilon_p and G_p values for the first nodes P from the walls are computed as a new boundary condition, while for k_p, such values are not set because the boundary condition is dk/dn=0 at the physical wall, i.e, in the dissipation equation the epsilon values at the P nodes are not unknown, while for the kinematic energy equation (as for U and p fields) the values at all cells are unknown.

In the description of 'epsilonWallFunctionFvPatchScalarField.C" you can read:
"inserts near wall epsilon values directly into the epsilon equation to act as a constraint".

From this, I understand that also for the dissipation equation the whole computational domain is solved but the values at the "P" nodes are set by additional constraints (equations?)

How is this implemented in OF? I don't see which functions are called for this and where.

Any hints are welcomed.

Thanks in advance,
LuisAlberto is offline   Reply With Quote

Old   September 5, 2015, 15:11
Default
  #2
New Member
 
Luis Alberto
Join Date: Aug 2015
Location: Spain
Posts: 8
Rep Power: 11
LuisAlberto is on a distinguished road
Hello,

I got it. For instance, in kEpsilon.C, the function boundaryManipulate() is called, which is implemented in fvMatrix.C and which calls the manipulateMatrix() function, in this case, the one implemented in epsilonWallFunctionFvPatchScalarField.C. There is where it "inserts near wall epsilon values directly into the epsilon equation to act as a constraint" by calling to setValues() which "Set solution in given cells to the specified values and eliminate the corresponding equations from the matrix."

Everything all right.
LuisAlberto is offline   Reply With Quote

Reply

Tags
wall functions


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
turn off wall functions in Transition SST model? johnp FLUENT 11 May 26, 2020 14:57
Wall functions in SU2 xgarnaud SU2 3 March 6, 2017 15:50
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
wall functions kd55 Main CFD Forum 2 April 13, 2012 05:37
When I use the wall functions....! maximus Main CFD Forum 7 January 20, 2003 10:35


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