CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

wall function for twoPhaseEulerFoam

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

Like Tree2Likes
  • 1 Post By alberto
  • 1 Post By alberto

Reply
 
LinkBack Thread Tools Display Modes
Old   January 10, 2012, 09:20
Default wall function for twoPhaseEulerFoam
  #1
Ofc
New Member
 
Join Date: Nov 2011
Posts: 9
Rep Power: 5
Ofc is on a distinguished road
Hello Foamers,

as the title says I look for some good wall function using the twoPhaseEulerFoam solver. Right now I deal with y+ values around 0.001 to 10. I tried zeroGradient for k and epsilon, but I was not sure about the results. I tried to get higher values of y+ (above 30) for some walls and use the kqrWallFunction, but when I try to run the solver it says this wall function does not exist. Anyone knows how to add the function to the solver?

Also, since I have a small slit with very low y+ values I thought of using a laminar case there. Is there a option in OpenFOAM to use two different solvers (1 laminar 1 turbulent) for the areas or do I have to run the case turbulent first then export the values at the slit inlet and outlet and rerun the slit in another case?

Thanks for your time & help,
Ofc is offline   Reply With Quote

Old   January 11, 2012, 10:01
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by Ofc View Post
Hello Foamers,

as the title says I look for some good wall function using the twoPhaseEulerFoam solver. Right now I deal with y+ values around 0.001 to 10. I tried zeroGradient for k and epsilon, but I was not sure about the results. I tried to get higher values of y+ (above 30) for some walls and use the kqrWallFunction, but when I try to run the solver it says this wall function does not exist. Anyone knows how to add the function to the solver?
The twoPhaseEulerFoam solver uses the same wall-functions implemented in bubbleFoam (the code is linked, that's why you do not see it into the twoPhaseEulerFoam directory. The tutorials using the turbulence model rely on wall-functions too.

Best,
Ofc likes this.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   January 12, 2012, 10:30
Default
  #3
Ofc
New Member
 
Join Date: Nov 2011
Posts: 9
Rep Power: 5
Ofc is on a distinguished road
Thanks Alberto,

I did look up the bubbleFOAM files now. For it seems that the solver always takes a wall function
"if (isA<wallFvPatch>(currPatch))" (from the wallFunctions.H)
I translated this line with "if a boundary is defined as a wall in the file constant/polyMesh/boundary
What is the difference if I change the wall function in the /0 folder?
Ofc is offline   Reply With Quote

Old   January 12, 2012, 12:01
Default
  #4
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by Ofc View Post
Thanks Alberto,

I did look up the bubbleFOAM files now. For it seems that the solver always takes a wall function
"if (isA<wallFvPatch>(currPatch))" (from the wallFunctions.H)
I translated this line with "if a boundary is defined as a wall in the file constant/polyMesh/boundary
What is the difference if I change the wall function in the /0 folder?
Yes, if you use the k-epsilon model in twoPhaseEulerFoam, you are always using the hard-coded wall-function in the code. If you specify a wall-function in the 0/ directory, it will be overridden by the solver, and it won't have any effect.

Best,
Ofc likes this.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
Wall function for velocity? johnblund OpenFOAM 0 March 10, 2011 09:50
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
Need some wall function approaches! yka8150 Main CFD Forum 0 September 21, 2009 23:08
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


All times are GMT -4. The time now is 23:13.