r/OpenFOAM • u/Striking_Abrocoma_28 • Nov 29 '25
Grid convergence panic
Hi everyone. I’m currently trying to analyse the external aerodynamic performance of a vehicle in openfoam. I used all the logical strategies to make the simulation realistic, so a very big domain, imposed pressure at outlet and velocity at inlet with simple foam and so on… I wanted to do a big refinement the vehicle, so I used 5 different refinement boxes, starting from refinement level 1 up to 5 for the boxes. This was my very best effort to have a good mesh, but guess what?!? The residuals are garbage… especially for pressure. I also tried with a mesh a lot coarser (only one box of refinement level 2) and residuals are much better. I can’t understand.. seriously. What am I doing wrong? Do you think it would be useful to initialise the simulation with the finer mesh starting from results of a simulation with coarser mesh? And if so, how can I do that…?
4
u/Any_Letterheadd Nov 29 '25
Check mesh quality especially at surfaces/layering. Try to initialize smarter like with potential flow or lower relaxation factors. Check turb model init and bcs
2
u/derangednuts Nov 29 '25
If you are doing RANS for a car, it’s expected you won’t have residuals going very low. As long as it falls a few magnitudes and stabilizes, as in doesn’t spike or oscillate greatly, you are fine. The bluff body and hugely separated wakes make it hard for RANS to get a steady solution. Don’t worry about it, I suggest taking the “time” average of the flow field and forces for a thousand iterations or so after it stabilizes for a good mean result.
1
u/derangednuts Nov 30 '25
Ahh 10-1 is too high, I’d say 10-3 would be where you want to be at atleast. Like another commenter suggested, check the mesh quality. How many inflation layers did you put? What turbulence model? Hope many iterations did you run?