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

Wall fuction in openFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2014, 17:21
Default Wall fuction in openFoam
  #1
New Member
 
Alessandro
Join Date: Nov 2014
Posts: 5
Rep Power: 11
Alessandro89 is on a distinguished road
hello guys,
I wanted clarification on the use of wall function in OpenFOAM. I have indeed performed a simulation of flow around two cylinders in tandem at Re = 200, using the k-wSST model. I used the wall function and the results are good, but I found an anomaly as running the command yplusRAS the output is <3, and as I read the WF in this region should not work: how does Openfoam behaves with wall function?
Then i run a simulation with the same conditions without using the wall function but results are bad..have you got any idea?
thanks
Alessandro89 is offline   Reply With Quote

Old   November 20, 2014, 07:34
Default
  #2
Member
 
Join Date: May 2014
Posts: 40
Rep Power: 11
Phil_ is on a distinguished road
Hello Alessandro,

for the highRe-approach (wall functions) the y+ of your first cell should be indeed between 30 and 200, preferably close to 30.

What do you mean by "without using the wall functions"?
Do you use a lowRe-approach instead with the correct boundary conditions
(U=0, k=1e-12, omega=omegaWallFunction, nut=calculated or 1e-12)?
For the lowRe approach y+ should be smaller than 1 for your first cell and you need enough cells in the boundary layer.

Best regards

Philip
Phil_ is offline   Reply With Quote

Old   November 20, 2014, 08:27
Default
  #3
New Member
 
Alessandro
Join Date: Nov 2014
Posts: 5
Rep Power: 11
Alessandro89 is on a distinguished road
Hi Philip,
i know that for the highRe-approach (wall functions) the y+ of your first cell should be indeed between 30 and 200, why does yPlusRAS provide between 2-3?

In lowRe-approach ("without wall function") i used k=1e-5 e omega=1e-5..why does it need to used omegawallFunction?
Thanks
Best Regards

Alessandro
Alessandro89 is offline   Reply With Quote

Old   November 20, 2014, 08:59
Default
  #4
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 26
RodriguezFatz will become famous soon enough
Alessandro, yPlusRAS calculates the y+ that is actually there. So if it says 2-3, than y+ is between 2 and 3. If you want to use wall functions in that case, your mesh is much to fine at the wall.

In lowRe approach (as always), omega needs to be high at the wall, not low as you state. Theoretically, it goes to infinity at the wall. For numerical simulations, this doesn't work, so some very high values are chosen. The actual value differs from paper to paper, but one regular way is provided by "omegWallFunction". It automatically switches from high- to low-Re boundary condition, depending on the y+ of your flow.
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   November 20, 2014, 09:57
Default
  #5
New Member
 
Alessandro
Join Date: Nov 2014
Posts: 5
Rep Power: 11
Alessandro89 is on a distinguished road
I used the wall function in that case and the results are good, I do not understand this: the wall function will work even if I yplus <30..why?

Thanks
Alessandro89 is offline   Reply With Quote

Old   November 20, 2014, 10:01
Default
  #6
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 26
RodriguezFatz will become famous soon enough
Well, since the omega wall function automatically switches from high to low-Re mode it won't make any problems in that case. But I guess your k-wall function will be a wrong boundary condition. Using a wrong b.c. doesn't mean your case can't converge... also the result can be coincidentally correct.
What means "the results are good"?
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   November 20, 2014, 10:17
Default
  #7
New Member
 
Alessandro
Join Date: Nov 2014
Posts: 5
Rep Power: 11
Alessandro89 is on a distinguished road
Means that the results are in agreement with those reported in literature;
now i read in other posts that yPlusRAS calculates y* instead y+..is it true?what is the difference?

this is k' Bc:

boundaryField
{
In
{
type fixedValue;
value uniform $turbulentKE;
}
Out
{
type inletOutlet;
inletValue $internalField;
value $internalField;
}
Left&Right
{
type empty;

}
Wall
{
type kqRWallFunction;
value $internalField;
}
}

turbulentKE= 6.9646e-1
Alessandro89 is offline   Reply With Quote

Old   November 20, 2014, 10:36
Default
  #8
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 26
RodriguezFatz will become famous soon enough
Quote:
Originally Posted by Alessandro89 View Post
Means that the results are in agreement with those reported in literature;
Yes, but which results? What value? You did not write what you are looking for with your simulations.
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   November 20, 2014, 10:43
Default
  #9
New Member
 
Alessandro
Join Date: Nov 2014
Posts: 5
Rep Power: 11
Alessandro89 is on a distinguished road
Time course of Cd and Cl, and Strouhal number
Alessandro89 is offline   Reply With Quote

Old   November 21, 2014, 04:19
Default
  #10
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 26
RodriguezFatz will become famous soon enough
Just an idea: Have a look at the picture. It shows "k" over "y" for a channel flow, with low-Re k-omega-sst model. My boundary condition was of course k=0, but as you can see, the gradient of k at y=0 is also very low. So maybe your boundary condition (zeroGradient) for k was not that bad at all.
k.jpg
Looks like you unintentionally made low-Re simulations. Anyone likes that idea?
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz 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
Wall treatment with OpenFOAM roby OpenFOAM Running, Solving & CFD 48 May 28, 2021 11:38
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 00:04
wall heat flux in openfoam hz283 OpenFOAM 1 January 4, 2014 07:51
where can I get details about wall functions used in openfoam sachinlb OpenFOAM Running, Solving & CFD 0 August 12, 2012 09:22
Hybrid Wall Treatment in OpenFOAM cbarry OpenFOAM 1 August 27, 2009 04:02


All times are GMT -4. The time now is 21:48.