simpleFoam diverges
3 Attachment(s)
Dear foamers,
I am trying to simulate an external aero case using simplefoam but without success. It runs fine till 150 iterations or so. After that it starts diverging. 1. Tried switching turbulence off - didn't help 2. used very low relaxation factors for p and U - didn't help either 3. changed the solver for p from GAMG to PCG and for U from smoothsolver to PBiCG - No difference. 4. Deleted a few problematic cells just by visual inspection - No difference 5. Played around with the boundary conditions also. can anybody help? I am attaching my checkMesh results and other files Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Hi,
I am not so sure about your mesh. Especially the old_Internal_Faces patch seems odd to me. You also seem to have a lot of different cell types, I am guessing this may have to do with the divergence. Could you post pictures of the mesh or maybe results from your latest iteration? Boundary conditions seem appropriate except once again the old internal faces, seems weird to have a symmetry plane in the middle of the mesh (guessing this). Please show this patch as well when showing the mesh. Regards, Tom |
Hi Tom,
Thanks for your reply. I generated my mesh using SHM. Initially, there were a lot of skewed faces and my mesh check failed. so, I deleted those cells and the internal faces are a result of that. I am really sorry. I am not at a liberty to post images of the mesh because of the rules in my company. How can I make sure that I dont have too many different cell types? |
Well in that case I think it is because of deleting the cells and the neighbouring cells of the ones you deleted. I think you need to work on the settings of snappy to make sure it gets a good mesh without deleting cells. I do not use snappy, so I am not sure what are the best settings, but there are a lot of discussions on the forum.
So fix the mesh (without deleting bad cells), than try again. Other than that it can be in fvSchemes. Could you post that one as well? Regards |
Hi Tom,
I ll work on improving the mesh. But, we used to remove the bad cells in starccm+ and convert the internal faces to symmetryPlane. can't we do something like that in openfoam? Here is my fvSchemes Quote:
|
I never did something like that, I do not think it will give you a good result in the end, I do not know how starccm+ handles it, but the general procedure would make me doubtful about the final result.
Probably in starccm+ there are additional limiters on gradients active. You can try to add them to you fvSchemes to get a converged result: Code:
gradSchemes Basically your setup (fvSchemes/fvSolution, boundary conditions) should be fine on a good enough mesh. My suggestions above may work on a slightly worse mesh. Last thing to check is the transportProperties files for correct value of viscosity, but I do not see anything very weird with your settings. Good luck, Tom |
Hi Ilam,
The solver simpleFoam is for steady-state flows. If your flow is expected to have vortex shedding this can hinder convergence. In this case it would be better to use a transient flow solver like pisoFoam. Best Regards, Paulo |
I found out that you can still get decent results even with some skeewed faces (providing the skeewness is not too high). At least you can get convergence and if you only have something like 10 skeewed faces, I don't think it will be a big problem.
|
Hi Tom and others,
Thanks for the reply first of all. @Tom: I did the changes you said. No change in the residual pattern. @Vatavuk: Hi, we are trying to simulate the flow around a bike, which would be used for thermal analysis later. vortex shedding is not of any interest to us as such . @Boucher: Hi, Initially I ran the case without removing any cells. It was diverging and that's when I started removing those bad cells. P.S: Really sorry for the late reply. |
All times are GMT -4. The time now is 01:51. |