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

Accuracy of wall shear and velocity

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2010, 08:31
Default Mesh effect on wall shear and velocity
  #1
Senior Member
 
Join Date: Mar 2009
Location: Norway
Posts: 137
Rep Power: 17
kjetil is on a distinguished road
Dear foamers,

I am comparing my High Re straight pipe simulations with some experimental data, using RANS turbulence and a wedge geometry in blockMesh. When trying to refine my mesh from 60 cells to 100 radially, I experience that the computed velocity gets better, but wall shear stress gets far worse. Keeping increasing the cell number similarly increases the faulty wall shear stress. This also happens if I still use 60 cells, but adding expanding cell size feature.

May all this be related to having first cell within y+ <5 , or is there something else to this?

Thanks

Last edited by kjetil; April 26, 2010 at 10:07.
kjetil is offline   Reply With Quote

Old   April 26, 2010, 09:32
Default
  #2
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Hi,

If you are using turbulence models that make use of wall functions, you need to keep your y+ above 30. If you want more resolution, switch to a low Re turbulence model without wall functions, or keep all your nodes at a y+ > 30.

Just to make you more confident with the code, I have obtained an almost perfect experimental vs numerical match for both wall shear stress and mass transfer coefficient using a low Re turbulence model without wall functions (Launder-Sharma) for a wedge geometry.

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   April 26, 2010, 09:40
Default
  #3
Senior Member
 
Join Date: Mar 2009
Location: Norway
Posts: 137
Rep Power: 17
kjetil is on a distinguished road
Thanks for your quick response Jose,

I did use Launder-Sharma for a low Re case, and even with wall functions (that is, using the built-in functions for k, epsilon, and nut) the results were pretty good.

Would you use the zeroGradient condition instead of the built-in wall functions?
kjetil is offline   Reply With Quote

Old   April 26, 2010, 10:02
Default
  #4
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Even it is "low Re turbulence model", it is not specific for a flow with low Re values, instead the difference to standard turbulence models is that it solves the fields up to the wall, without wall models. Therefore, you need more cells near the walls to get a proper description of your flow.

If using a low Re turbulence model, I think its better (I read it somewhere in this forum) to use a very small value for k and epsilon, eg 1e-30. Anyway, it will work with zeroGradient as well.

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   April 26, 2010, 10:07
Default
  #5
Senior Member
 
Join Date: Mar 2009
Location: Norway
Posts: 137
Rep Power: 17
kjetil is on a distinguished road
Right, I have heard about using those non-zero conditions ..

Did you ever try this for higher Re? In my case I am in the range 50000 - 300000.
kjetil is offline   Reply With Quote

Old   April 26, 2010, 10:38
Default
  #6
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
I have tried it for Re = 20000. My friction factor results were 5-10% higher than the Blasius equation, which I suspect was mainly due to the uniform inlet velocity profile I assumed. Just make sure your y+ < 1.

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   April 27, 2010, 05:33
Default
  #7
Senior Member
 
Join Date: Mar 2009
Location: Norway
Posts: 137
Rep Power: 17
kjetil is on a distinguished road
Great. Using a low Re actually works for higher Re .. I wouldn't have guessed

About the nut file, would you set it to ~0, zeroGradient, or delete it and let OF create it by itself?
kjetil is offline   Reply With Quote

Old   April 27, 2010, 05:55
Default
  #8
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
I dont think you need to have it in your 0 folder, it will be calculated during run-time from k and epsilon.

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   April 27, 2010, 06:15
Default
  #9
Senior Member
 
Join Date: Mar 2009
Location: Norway
Posts: 137
Rep Power: 17
kjetil is on a distinguished road
Right. Well, the reason I'm asking is because nut is created/calculated, but automatically set with condition nutWallFunction for walls. As I have disabled wall functions for epsilon and k, I am not sure whether this also should be turned off (by force by having this file in 0/ initially, set to something apart from the wall function) or just leave it with using the nut file that is automatically created, yielding some sort of quasi wall function setup...
kjetil is offline   Reply With Quote

Old   April 27, 2010, 06:19
Default
  #10
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Just to be on the safe side, set nut in 0 in the same way you defined k and epsilon.

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   April 27, 2010, 13:35
Default
  #11
Senior Member
 
Join Date: Mar 2009
Location: Norway
Posts: 137
Rep Power: 17
kjetil is on a distinguished road
I had some mixed experiences now using this method - even the cases still running with wall functions are not that bad. In short, when not using wall functions, the result is pretty much similar to the red graph here. Did you experience results like this?

(I have performed several reruns using different mesh, but I can't really get it as nice and curvy (in the top part) as with the experimental results.)
Attached Images
File Type: jpg plot1.jpg (33.5 KB, 36 views)
kjetil is offline   Reply With Quote

Reply

Tags
mesh, y plus

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Shear stress in 3D nikosb Main CFD Forum 1 April 15, 2010 03:52
Wall shear forces philippose OpenFOAM Running, Solving & CFD 0 April 29, 2007 10:10
Variables Definition in CFX Solver 5.6 R P CFX 2 October 26, 2004 02:13
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13
X-Y plot of Yplus in Fluent 5.3 Luo FLUENT 24 April 11, 2000 06:07


All times are GMT -4. The time now is 19:34.