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

Unable to Reproduce Critical Value of Rayleigh-Benard Convection

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By olivierG

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2014, 06:29
Question Unable to Reproduce Critical Value of Rayleigh-Benard Convection
  #1
New Member
 
Chenguang Zhang
Join Date: Jul 2012
Location: Baton Rouge Louisiana
Posts: 15
Rep Power: 14
Taozi is on a distinguished road
4*1 domain, periodic in x and non-slip in y, Ra_cri = 1706, successful with Gerris, unsuccessful with foam-extend-3.0. I saw some people asked about this long ago, but could not find any answer. The problem is there is no instability at all for example at Ra = 1800. I wish to use OpenFOAM for some theoretical analysis, and first of all I have make sure that it can reproduce this classical result. I couldn't figure out what the reason is, maybe grid resolution should be high? maybe run time should be longer? maybe the FVM scheme should be changed? But all seem to be off the point to me.

Another very strange thing is in the following figure (attached, name Selection_003.jpg), it plots the velocity magnitude. I have specified periodic boundary conditions (using cyclic in openfoam) in the x direction, and it doesn't make sense that something (higher velocity magnitude - or just floating point errors) concentrate near the boundary -- there is no horizontal boundary at all!

I have attached the simulation files.

It's four in the morning at my time zone, after fighting against if overnight, I am pretty upset... So could someone offer some help? The case setup is very simple, so reading it and even running it yourself won't take much time, no to mention it's weekend, so please~

Thank you very much!
Attached Images
File Type: jpg Selection_003.jpg (12.9 KB, 48 views)
Attached Files
File Type: zip rayleighbenard.zip (5.2 KB, 32 views)
Taozi is offline   Reply With Quote

Old   August 16, 2014, 09:03
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Tom,

I've finally managed to have a look into this. Problem is that I'm not able to run the simulation case you've provided
I had to create the mesh with blockMesh from OpenFOAM 2.3.x and then used boussinesqBuoyantFoam from foam-extend 3.0 to run the case. But it crashed at 0.2 of the simulation time/iteration.

Therefore, I'm unable to diagnose anything at all
If you have already solved this issue, please provide at least some closure on this topic.
If you have not yet solved this issue, please provide more information and a "working case", in which it's possible to diagnose the same problem you're having.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 27, 2014, 14:26
Default
  #3
New Member
 
Chenguang Zhang
Join Date: Jul 2012
Location: Baton Rouge Louisiana
Posts: 15
Rep Power: 14
Taozi is on a distinguished road
Hi Bruno, sorry for the late reply.
I also use boussinesqBuoyantFoam from ext-3.0, with slight modification to work with 2.3.x. Attached is the same case file above, together with the solver (inside the case folder), you can wmake (using 2.3.x) in the solver folder (the resultant exe is in the solver folder as well) and
cd ..
./boussinesqBuoyantFoam/boussinesqBuoyantFoam

It runs well and successfully generates the same problem.
Following is the dropbox link:
https://dl.dropboxusercontent.com/u/...eighbenard.zip

Chenguang
Taozi is offline   Reply With Quote

Old   December 30, 2014, 15:33
Default
  #4
Member
 
Adam
Join Date: Jun 2011
Posts: 32
Rep Power: 15
Smed is on a distinguished road
Has anyone had a chance to look into this further?

I was able to run Taozi's model from the dropbox attachment using OF 2.3.1. I confirmed that the model looks correct and the boundary conditions should result in a Rayleigh number of 1800, but I don't know why the results don't look right.
Smed is offline   Reply With Quote

Old   January 5, 2015, 17:41
Default
  #5
New Member
 
Chenguang Zhang
Join Date: Jul 2012
Location: Baton Rouge Louisiana
Posts: 15
Rep Power: 14
Taozi is on a distinguished road
Hi Adam, Thank your for your attention. I still don't have a hint why this happens, especially when I am able to get the correction Ra number with either gerris or fluent. To me this is a serious problem and I had to give up using OpenFOAM for one of my research problem. I will still look into it when I have time, but I wish people with deeper insight into OpenFOAM will come and help :-)
Taozi is offline   Reply With Quote

Old   January 6, 2015, 03:48
Default
  #6
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13
ssss is on a distinguished road
Could you give more informatión about the simulation? Domain, discretization, mesh,etc... Are you sure you are using a correct mesh? You will need to refine a lot to get to the instability to grow if you are near the ra critical
ssss is offline   Reply With Quote

Old   January 7, 2015, 16:04
Default
  #7
Member
 
Adam
Join Date: Jun 2011
Posts: 32
Rep Power: 15
Smed is on a distinguished road
The entire self-contained case is in Taozi's earlier dropbox link.

For a general summary, the 2D cavity is 4 meters wide and 1 meter tall, the mesh is a uniform 128x32, but I tried increasing to 256x128 without any significant effect on results, the temperature difference between plates is 1.8 K, the solution schemes seem to be pretty standard PISO, but again, I'd suggest looking at the system files for more details.

Taozi, can you provide us with your equivalent model for Gerris? I've never used that code, but maybe by looking at the differences we can figure out the problem.
Smed is offline   Reply With Quote

Old   January 8, 2015, 08:02
Default
  #8
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18
olivierG is on a distinguished road
Hello,

I don't reproduce your result either.
You use transient solver pimple, and don't wait long enough to get the solution.
Here is some pict + case with OF 2.3.x from your case, with same mesh.

regards,
olivier
Attached Images
File Type: jpg Ra1700_BBPimpleFoam.jpg (57.4 KB, 43 views)
File Type: jpg Ra1700_BBSimpleFoam.jpg (55.8 KB, 35 views)
Attached Files
File Type: zip Ra1710_buoyantBoussinesqPimpleFoam.zip (8.9 KB, 52 views)
File Type: zip Ra1710_buoyantBoussinesqSimpleFoam.zip (9.4 KB, 33 views)
wyldckat likes this.
olivierG is offline   Reply With Quote

Old   February 1, 2015, 02:37
Default
  #9
New Member
 
Chenguang Zhang
Join Date: Jul 2012
Location: Baton Rouge Louisiana
Posts: 15
Rep Power: 14
Taozi is on a distinguished road
Quote:
Originally Posted by olivierG View Post
Hello,

I don't reproduce your result either.
You use transient solver pimple, and don't wait long enough to get the solution.
Here is some pict + case with OF 2.3.x from your case, with same mesh.

regards,
olivier
Hi, Olivier, thank you very much. I am checking your case. I haven't run it for 2000s yet (still running), but I noticed that the mysterious behavior of U near the side wall is still there (as in the picture of my first post). My understanding is if the domain is periodic and there is no side wall, the solution's behavior should be more or less uniform across the domain. Even instability occurs, it should occur across the domain. The appearance of the solution, however, seems to me that the algorithm some how still feels effect of a virtual wall. That's very strange to me. What do you think of that, did you see it in your simulation results?
Taozi is offline   Reply With Quote

Old   February 1, 2015, 02:59
Default
  #10
New Member
 
Chenguang Zhang
Join Date: Jul 2012
Location: Baton Rouge Louisiana
Posts: 15
Rep Power: 14
Taozi is on a distinguished road
Hi Adam, below is the gerris file I used, you can run it as gerris2D -m filename

Code:
Define T1 1.716

4 4 GfsSimulation GfsBox GfsGEdge{}{
        PhysicalParams {L = 1 g = 0}
        Refine 6
        Time{start = 0 end = 1000}

        VariableTracer {} T
        SourceViscosity 0.01
        SourceDiffusion T 0.01
        # beta*g = 0.1
        Source {} V 0.1*T

        # some perturbation is added
        GfsInit {} {
            T = T1 * (0.5 - y) + sin(1000*x)
        }

        # output control
        OutputTime {step=1} stdout
        OutputSimulation {step = 10} ./output-%04.1f.gts
        GfsOutputScalarStats {step = 1} ./maxmin_vel { v = Velocity}
}

# box 0
GfsBox{
    top   = Boundary{
        BcDirichlet T 0
        BcDirichlet U 0
        BcDirichlet V 0
    }
    bottom= Boundary{
        BcDirichlet T T1
        BcDirichlet U 0
        BcDirichlet V 0
    }
}

# box 1
GfsBox{
    top   = Boundary{
        BcDirichlet T 0
        BcDirichlet U 0
        BcDirichlet V 0
    }
    bottom= Boundary{
        BcDirichlet T T1
        BcDirichlet U 0
        BcDirichlet V 0
    }
}
# box 2
GfsBox{
    top   = Boundary{
        BcDirichlet T 0
        BcDirichlet U 0
        BcDirichlet V 0
    }
    bottom= Boundary{
        BcDirichlet T T1
        BcDirichlet U 0
        BcDirichlet V 0
    }
}

# box end
GfsBox{
    top   = Boundary{
        BcDirichlet T 0
        BcDirichlet U 0
        BcDirichlet V 0
    }
    bottom= Boundary{
        BcDirichlet T T1
        BcDirichlet U 0
        BcDirichlet V 0
    }
}
1 2 right
2 3 right
3 4 right
4 1 right
# End of gfs file

Last edited by wyldckat; February 1, 2015 at 09:26. Reason: Added [CODE][/CODE]
Taozi is offline   Reply With Quote

Old   February 3, 2015, 07:01
Default
  #11
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18
olivierG is on a distinguished road
Hello Taozi,

The instability start from the cyclic, but evolve rapidly (solution is already here way before 1000s).
Note that this is without adding initial sinus perturbation like in gerris, so if you want perform a bench test, do the same.

regards,
olivier
olivierG 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
Rayleigh number and rate of fluid rise due to natural convection in a pipe / duct? bzz77 Main CFD Forum 0 July 6, 2013 15:50
[Commercial meshers] ST_Malloc: out of memory.malloc_storage: unable to malloc Velocity SA, cfdproject OpenFOAM Meshing & Mesh Conversion 0 April 14, 2009 16:45
Natural convection cavities high rayleigh numbers tommy CFX 3 September 27, 2008 16:43
benard convection samik FLUENT 0 April 19, 2008 16:22
natural convection at high Rayleigh mauricio FLUENT 2 February 23, 2005 20:43


All times are GMT -4. The time now is 04:38.