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

Checkerboarding with interFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By fs82

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2015, 09:59
Default Checkerboarding with interFoam
  #1
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18
fs82 is on a distinguished road
Dear Foamers,

I have a very annoying problem concerning boundary conditions in multiphase flows. I like to simulate a single twodimensional bubble with interFoam. Boundary conditions are zero velocity condition at top and buttom and slip condition at the left and right wall. Alpha has zeroGradient everywhere and p_rgh fixedFluxPressure.

To generate an appropriate start solution I turned of gravity and gave the simulation some time to generate a steady solution, assuming that the bubble does not move due to missing gravity. However, after a couple of seconds my simulation crashes. The reason seems to be some oscillations (checkerboarding) visible in the horizontal velocity U at the left or right wall (velocity_slip.png). The pressure field looks strange as well (not symmetric, pressue_slip.png). I do not have a clue what is the reason for that. If I change slip to fixedValue everything is fine (velocity_fixedValue.png and pressure_fixedValue.png). I attached a testcase, if somebody wants to try it. I appreciate every help.

Best regards,
Fabian
Attached Images
File Type: jpg pressure_fixedValue.jpg (27.0 KB, 43 views)
File Type: jpg pressure_slip.jpg (30.3 KB, 42 views)
File Type: jpg velocity_fixedValue.jpg (29.2 KB, 46 views)
File Type: jpg velocity_slip.jpg (33.2 KB, 38 views)
Attached Files
File Type: zip testcase.zip (6.6 KB, 2 views)
fs82 is offline   Reply With Quote

Old   July 15, 2015, 08:19
Default
  #2
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18
fs82 is on a distinguished road
Heureka, the solution is written in Ferziger, Computational Methods for Fluid Dynamics, 2008 on page 294 (section 8.8) and is related to the rhie-chow correction to avoid the checkerboarding on staggered grids. There is a minimum criteria for the Courant number of Co>0.01 and I missed it.
Gerry Kan likes this.
fs82 is offline   Reply With Quote

Old   September 4, 2019, 04:12
Default
  #3
Senior Member
 
Gerry Kan's Avatar
 
Gerry Kan
Join Date: May 2016
Posts: 376
Rep Power: 11
Gerry Kan is on a distinguished road
Hallo Florian:

I went to my copy of Ferziger and Peric for section 8.8 (my edition was rather old so it was on a much different page number than you indicated). Here is the Zitat:

"The cell face velocity is corrected by subtracting the difference between the pressure gradient and the interpolated gradient at the cell face location. ... The correction term may be small if Ap is large. This can happen when unsteady problems are solved using very small time steps. This approach ... was developed ... and is usually attributed to Rhie and Chow (1983)."

I suppose the "small time step" part is the analog to the Courant number argument? Perhaps in the later editions it was explicitly written?

Thanks in advance, Gerry.
Gerry Kan 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
InterFoam stops after deltaT goes to 1e14 francesco_b OpenFOAM Running, Solving & CFD 9 July 25, 2020 07:36
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 12 January 31, 2020 16:26
interFoam in parallel gooya_kabir OpenFOAM Running, Solving & CFD 0 December 9, 2013 06:09
Problem of InterFoam with LES SpalartAllmarasIDDES keepfit OpenFOAM 3 August 29, 2013 12:21
Open Channel Flow using InterFoam type solver sxhdhi OpenFOAM Running, Solving & CFD 3 May 5, 2009 22:58


All times are GMT -4. The time now is 16:52.