CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   Reason for oscillating residuals (http://www.cfd-online.com/Forums/main/89750-reason-oscillating-residuals.html)

 fayaazhussain June 21, 2011 13:40

Reason for oscillating residuals

Dear all,
I would like to know the reason behind oscillating residuals. I am trying to simulate flow through a CD nozzle. I had mesh which gave me a converged solution for a pressure ratio of 6. The same mesh was useless with other pressure ratios. I got a error code 255 or error code 1 in ansys cfx. I remeshed by making a little coarser mesh. It works fine with pressure ratio 5. But my residuals started oscillating at the end but somehow managed to converge. The same mesh is being used for a pressure ratio 0f 4 but my residuals are oscillating badly. I heard that a very fine mesh could be one of the reasons for oscillations but my mesh seems to be coarse in my point of view. Can anybody help me in understanding the reasons behind the oscillations? Thanks in advance

 julien.decharentenay June 21, 2011 18:56

Hi Fayaaz,

There are large numbers of reasons why residuals may oscillate, below are a couple of ideas/reasons:

1) The physic of the flow dictates that there is no steady-state solution, only transient ones. Therefore once the solution is within the transient behavior, the residuals oscillates. Coarsening of the mesh may help with this problem. The "appropriate" way is to conduct a transient simulation and time-average it - but it is time expensive;
2) The code implementation (some random if statement) means that the flow is switching between 2 (or more) different models/limiters and the like. This creates oscillation in residuals.

You should look at convergence beyond residuals, i.e. monitoring of the flow field and variable of interest, and look at the area of large residuals (by plotting the residuals distribution).

Regards,
Julien

 meangreen June 27, 2011 12:51

lower your under relaxation facrors (URFs). Osciallting residuals (genearlly) means the solution is changing too much between iterations and overshooting the solution.

 marcel_jay August 21, 2014 10:31

Quote:
 Originally Posted by fayaazhussain (Post 312940) Dear all, I heard that a very fine mesh could be one of the reasons for oscillations but my mesh seems to be coarse in my point of view. Can anybody help me in understanding the reasons behind the oscillations? Thanks in advance
I would like to know how you define a coarse or fine mesh.
My mesh for example has about 700k elements in a quite simple geometry. Would that be too fine?

Cheers

 All times are GMT -4. The time now is 10:49.