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

how to set up wall function in bubbleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2010, 04:05
Default how to set up wall function in bubbleFoam
  #1
New Member
 
trister
Join Date: May 2009
Posts: 3
Rep Power: 17
adouchihiitoko is on a distinguished road
Hi
I try to calculate turbulent bubbly flow by bubbleFoam. I don't know how to set up wall function in k and epsilon file in 0 folder since "bubbleColumn" tutorial doesn't treat turbulent flow and wall function. I suppose that "zeroGradient" is unreasonable. Can anyone help me?
adouchihiitoko is offline   Reply With Quote

Old   October 18, 2010, 15:51
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Please, check the code. Wall-functions in bubbleFoam are coded directly in the solver and automatically applied when the turbulence model is active.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   October 24, 2010, 05:16
Default
  #3
New Member
 
trister
Join Date: May 2009
Posts: 3
Rep Power: 17
adouchihiitoko is on a distinguished road
Thanks.
I found all files related turbulence e.g. wallfunctions.* are in \applications\solvers\multiohase\bubbleFoam.
adouchihiitoko is offline   Reply With Quote

Old   November 4, 2010, 08:18
Default
  #4
New Member
 
Franz Jacobsen
Join Date: Oct 2009
Location: Brisbane
Posts: 9
Rep Power: 17
Franz_J is on a distinguished road
Hi Adouchihihiitoko
Did you manage to get bubbleFoam to solve with turbulence as the RASModel ? I get the following messages,

keyword laplacian(DepsilonEff,epsilon) is undefined in dictionary "/home/f/OpenFOAM/f-1.7.0/working2/sludge2D/test2/system/fvSchemes::laplacianSchemes"

file: /home/f/OpenFOAM/f-1.7.0/working2/test2/system/fvSchemes::laplacianSchemes from line 42 to line 45.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 395.
Franz_J is offline   Reply With Quote

Old   November 4, 2010, 08:57
Default
  #5
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
Just add the entry into system/fvSchemes, and be careful using the turbulence model, it's very basic! Remember it's not using the turbulence libraries that can be used for single phase flows, so the only entry it uses in the RAS dictionary is turbulence on/off.

If you look in kEpsilon.H:

Code:
    // Dissipation equation
    fvScalarMatrix epsEqn
    (
        fvm::ddt(beta, epsilon)
      + fvm::div(phib, epsilon)
      - fvm::laplacian
        (
            alphaEps*nuEffb, epsilon,
            "laplacian(DepsilonEff,epsilon)"
        )
      ==
         C1*beta*G*epsilon/k
       - fvm::Sp(C2*beta*epsilon/k, epsilon)
    );
You can see that for the laplacian discretisation the scheme is looked up in the fvSchemes dictionary.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   November 5, 2010, 06:59
Default
  #6
New Member
 
Franz Jacobsen
Join Date: Oct 2009
Location: Brisbane
Posts: 9
Rep Power: 17
Franz_J is on a distinguished road
thanks Laurence
I did that and it's working. Now I'm running some test cases and it crashes after abut 50 time steps, Ur Courant number tends to diverge, but I can fiddle with it,
thanks again
Franz_J 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
Pneumatic simulation - moving wall as a function of a pressure difference jbmackay OpenFOAM 0 September 22, 2010 16:51
Wall function formulation in CFX and Fluent gravis ANSYS 0 May 4, 2010 12:03
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 07:59
Wall function problem in Fluent mefpz FLUENT 1 October 10, 2007 14:43
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 05:27


All times are GMT -4. The time now is 20:09.