|
[Sponsors] |
November 22, 2020, 15:46 |
Maximum Number of Iterations Exceeded
|
#1 |
New Member
George
Join Date: Nov 2020
Posts: 6
Rep Power: 6 |
Hello,
I am currently trying to run a simulation for the standard ONERA M6 wing benchmark test, which is transonic flow over a wing. However, after I set the simulation running (I'm using rhoSimpleFoam) I get the error "maximum number of iterations exceeded". I have looked around these forums in an attempt to alleviate the error but unfortunately I have had no luck so far. From what I have picked up, the most likely cause of the issue is a poor mesh, incorrect thermophysicalProperties file or incorrect boundary conditions. Hence I have checked my boundary conditions and thermophysical properties but I can see no issue with them. The only potential issue I can see is that when I run checkMesh I have 10 non-orthogonal faces but I am still given the Mesh OK statement at the end. Just to make sure this was not the problem, I used a different mesh, which had a maximum non-orthogonality below 70 degrees, but I still had the same issue when running the simulation. I would greatly appreciate if someone could point me in the right direction please? Please find attached my case files in the zip folder, I have also attached an image of the error message and my checkMesh output. Thanks in advance. Last edited by George44; November 22, 2020 at 17:35. |
|
November 24, 2020, 10:16 |
|
#2 |
Senior Member
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 369
Rep Power: 8 |
in fvSolution for p try the solver PCG and preconditioner DIC,
btw your tolerance for U can be tighter i.e. 1e-8 and relTol 0. |
|
November 24, 2020, 11:59 |
|
#3 |
New Member
George
Join Date: Nov 2020
Posts: 6
Rep Power: 6 |
Hi geth03 - thank you very much for your reply. I have implemented the changes that you have suggested but unfortunately I still get the same error at the same time step.
|
|
November 25, 2020, 03:14 |
|
#4 |
Senior Member
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 369
Rep Power: 8 |
1. try a run with laminar flow instead of turbulence to ensure that turbulence model is not the problem here.
2. your mesh:your aspect ratio is way too high, recommended is normally 5, in cases where gradients are small it could be as much as 10, but 86 is way too much. it means at least one cell has a side that is 86 times larger than the smallest side. 3. can you post a screenshot of your mesh? also post a screenshot of the pressure and velocity field in the timestep before the crash occurs. |
|
November 25, 2020, 08:26 |
|
#5 |
New Member
George
Join Date: Nov 2020
Posts: 6
Rep Power: 6 |
Thank you again for your time and patience with me.
1. I have run the simulation as a laminar flow but I get the same error at the same time step again. I guess this confirms your suspicion that my mesh is the problem as opposed to the turbulence model. 2. Thank you for the guidelines, I will start working on improving my aspect ratio. I think the inflation layer I have used is what is driving my aspect ratio so high, hence I will focus my attention there. 3. Please find attached photos of my mesh in this reply and I will attach my p and U plots in the next reply. Thanks again! |
|
November 25, 2020, 08:27 |
|
#6 |
New Member
George
Join Date: Nov 2020
Posts: 6
Rep Power: 6 |
And here are my U and p plots.
|
|
November 25, 2020, 08:40 |
|
#7 |
Senior Member
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 369
Rep Power: 8 |
lets clarify a few things for my understanding:
you are simulating a density varying fluid in dependence of pressure, also as EOS you are using the perfect gas equation. you pressure field has negative values, so what happens with your density? does it have negative values too? |
|
November 25, 2020, 09:15 |
|
#8 |
New Member
George
Join Date: Nov 2020
Posts: 6
Rep Power: 6 |
Yes, I am simulating a density varying fluid and I am using the perfect gas equation. Neither my density nor temperature plots have negative values (please see attached), which I guess is good because this would be non-physical. However, I am not entirely sure how my pressure then has negative values, because considering the perfect gas equation, if rho, temperature and the gas constant are positive, then pressure should also be positive.
|
|
November 25, 2020, 09:23 |
|
#9 |
Senior Member
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 369
Rep Power: 8 |
yeah thats what i am concerned about, looks like the pressure equation can not converge and maybe thats the issue.
|
|
November 25, 2020, 09:34 |
|
#10 |
New Member
George
Join Date: Nov 2020
Posts: 6
Rep Power: 6 |
Ok, thank you for identifying that. I think my best bet then is to improve my mesh quality and also review my initial conditions for pressure. I may also try changing my divergence scheme for pressure to "Gauss upwind" instead of "Gauss limitedLinear" to help with convergence and then change back to the linear scheme after pressure has started to converge.
|
|
November 25, 2020, 10:06 |
|
#11 |
Senior Member
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 369
Rep Power: 8 |
good luck !
if you find a solution pls write what the matter was. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 92 | May 21, 2024 08:56 |
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops | avinashjagdale | OpenFOAM Meshing & Mesh Conversion | 53 | March 8, 2019 10:42 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 03:50 |
Cannot run the code properly: very large time step continuity error | crst15 | OpenFOAM Running, Solving & CFD | 9 | December 14, 2014 19:17 |
Unstabil Simulation with chtMultiRegionFoam | mbay101 | OpenFOAM Running, Solving & CFD | 13 | December 28, 2013 14:12 |