CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Viscosity in Standard Wall Function

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By dinhanh

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2017, 05:45
Question Viscosity in Standard Wall Function
  #1
Member
 
Anh
Join Date: Sep 2014
Posts: 72
Rep Power: 12
dinhanh is on a distinguished road
I am trying to write the standard wall function code for my study. I uses the standard k-epsilon model with Launder-Spalding wall function. I refered from the CFD-Online Wiki and from the report of J. Bredberg "On the Wall Boundary Condition for Turbulence Models".
The three steps is procedured at the first node away the wall, P
1. Modify wall viscosity.
2. Modify production and disipation terms in k equation.
3. Specify the value of epsilon.

I have done all step with the limitation for ystar (y*) as scabale wall function and run the simulation code. I checked the y* value that all are >30. However, the contour of turbulent kinetic energy and viscosity shown strange when those values become small at the wall and point P.

The modify viscosity in those references is;
nutt=cmu^.25*k^.5*y*kapa/ln(E*(y*))

I found from another reference that
nutt=kapa*cmu^.25*k^.5*y

But got the same result. I could not find the solution for this code. All the proceduces that I did are correct? If you could give the explaination or solution for my problem, please kindly help!

Thank in advance!
Attached Images
File Type: jpg kineticenergy.jpg (103.7 KB, 6 views)
File Type: jpg dissipationrate.jpg (130.0 KB, 6 views)
File Type: jpg viscosity.jpg (143.4 KB, 6 views)
dinhanh is offline   Reply With Quote

Old   August 1, 2017, 06:37
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,190
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
I do not program my wall functions in this way, so I can't be of any help here. Still, OpenFOAM does it, you might have a look at how it does.

Check it under src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions

nutWallFunctions should be what you're looking for. Still you might want to give a look around.

Unfortunately I can't give any more hints as I don't actively work on the OF source code.
sbaffini is offline   Reply With Quote

Old   August 1, 2017, 06:53
Default
  #3
Member
 
Anh
Join Date: Sep 2014
Posts: 72
Rep Power: 12
dinhanh is on a distinguished road
Thank you, Paolo Lampitella

I looked the OF source code. I think they do the same what I did. But my result show some what strange, I think. Also, my code is finite difference method. Anyway, Thank you for your help.
dinhanh is offline   Reply With Quote

Old   August 1, 2017, 06:56
Default
  #4
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,190
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
May I suggest working on a simpler setting, where you can filter out any other possible influence? For example, you might work on the channel flow, where the equations would reduce to 1D only on half channel height.
sbaffini is offline   Reply With Quote

Old   August 4, 2017, 04:12
Default
  #5
Member
 
Anh
Join Date: Sep 2014
Posts: 72
Rep Power: 12
dinhanh is on a distinguished road
Thank Paolo,

I found the problem. That caused by the minimum limitation I set for turbulent value.
My problem is cavitation modeling. However, the results is stll somewhat strange when the turbulent viscosity at wall is small
sbaffini likes this.
dinhanh 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
Standard Wall Function junz FLUENT 1 December 2, 2016 03:04
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
k-e standard wall function and y+ macfly FLUENT 0 March 3, 2010 17:28
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 07:59
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50


All times are GMT -4. The time now is 14:15.