How to avoid checkerboard?
Dear Foamers,
I created a density based (no PISO loop !) combustion solver which works fine as long as I use adiabatic walls. However, if I set the temperature on the walls to a fixed value, a checkerboard pattern in the pressure develops (not immediately, but after a few hundred timesteps). In short, the code looks like this (similar to rhoCentralFoam): Code:
#include "rhoEqn.H" The p boundary condition on the walls is zeroGradient. Changing the grad scheme in fvSchemes from Gauss linear to fourth did not yield any improvement. Any suggestions are appreciated! |
1 Attachment(s)
|
Can you post your complete fvSchemes and fvSolution? Also, did you arefully check if your solution converges?
|
Bernhard, I checked convergence, the residuals are nice.
Here are my schemes: Code:
FoamFile Code:
FoamFile |
Any updates on this problem? I am experiencing the same issues but in a modified version of porousInterFoam where increasing permeability[m^2] results in this checkerboard pressure field.
James |
Greetings to all!
@James: Can you provide a test case and respective solver? Either way, try following the same analysis strategy I used here: http://www.cfd-online.com/Forums/ope...tml#post446350 post #17 Best regards, Bruno |
Quote:
Ive seen your posts all throughout the forums. Thanks for your help and input! I need to get better at following up on my own solutions since I have fixed my problem! :D My checkerboarding was caused by slip boundary conditions, i.e. checkerboarding would occur anywhere there were no gradients in the velocity field (resulting in unstable oscillations that still satisfied continuity). Im not sure what parameters/mat'l properties resulted in my cases diverging and not any of my others; however, I increased nOuterCorrectors in fvSolution for PIMPLE: Code:
PIMPLE I cant give you stats on the difference in iterations between the first and second loops; however, I know the second pass through the PIMPLE loop with nOuterCorrectors=2 resulted in nearly the order of iterations in the first pass. I believe in my first case (mixed slip and no-slip boundaries), I had a high value of sigma (0.1N/m) and a small domain resulting in relatively large surface tension forces and consequently, un-realistic velocities on the slip walls across the interface since the BC is set to zeroGradient/slip/symetry and forced the liquid phase to adjust rapidly. In another case, I had a uniform inflow and slip conditions on various boundaries resulting in the checkerboarding due to the onset of instability from the lack of gradients anywhere in the flow field. I cannot reproduce the error since I have modified those cases. so I didnt provide a test case : / I hope this helps, James |
If increasing the number of iterations fixes your problem, then this is a simple convergence issue. I suggest you monitor the convergence behaviour of the initial residuals.
|
All times are GMT -4. The time now is 17:05. |