# Oscillating residuals

 Register Blogs Members List Search Today's Posts Mark Forums Read

 October 5, 2017, 13:29 Oscillating residuals #1 New Member   Join Date: Sep 2017 Location: Santiago, Chile Posts: 6 Rep Power: 6 Hello, I've been working with CFX on the ventilation of engine emissions in a maintenance workshop and I encountered a problem regarding the residuals during the simulation. During the steady state solution (for the initial conditions of the transient one) everything is fine, but when working the transient sim the residuals (momentum, turbulence variables, imbalances) oscillate highly with periods of 0.05 sec to 0.1 sec approximately. The solution in large timescales, over 30 seconds, it's fine and doesn't have any abnormalities, so apparently it's not a problem of convergence of the solution (topic that is covered in related threads, which I reviewed). I tried changing some parameters like min time step, incresing time step factor, max time step, without any appreciable effect. I think it may have something to do with the numerical scheme being used, but I'm not entirely sure how to approach this problem as I'm fairly new to CFX (and to this forum too, I hope this is enough information as a starting point to a discussion, I didn't know what other info to give at this point). I appreciate any information o suggestion you could give to understand and eventually fix this issue. Regards

 October 5, 2017, 13:39 #2 Senior Member   Join Date: Jun 2009 Posts: 1,540 Rep Power: 27 A snapshot of the residual plot would help. For transient simulations, the residuals nearly always go up every time step until it converges within the timestep. To see that you may need to activate monitoring within the coefficient loop. If the flow is unsteady, the residual at which iteration is deemed converged can be different every timestep leaving something else to smooth out in the next timestep. Have you tried lowering the target residual a bit further (recall to increase the maximum number of coefficient loops as well) and see if the oscillation diminishes? In theory the solution of a given timestep is achieved when the residual is 0; however, that is not practical and a compromise is used, i.e. target residual. Once there is a compromise, the question is how large can the target residual be and the transient solution still be representative of the physics being modeled and not become dependent on the selected value. Hope the above helps,

October 5, 2017, 13:54
#3
New Member

Join Date: Sep 2017
Location: Santiago, Chile
Posts: 6
Rep Power: 6
Here I have a picture of the behaviour that I mentioned.

Opaque, right, it may be what you mentioned I'll try changing those parameters. It's not happening for all cases (dimensions and boundary conditions change within a fairly narrow range), so maybe not all situations use many loops to achieve a certain residual target.
Attached Images
 residual_osc.png (162.9 KB, 229 views)

 October 5, 2017, 14:42 #4 Senior Member   Join Date: Jun 2009 Posts: 1,540 Rep Power: 27 For this particular plot, your steady state solution is far from converged and the transient simulation is smoothing out the incomplete solution and trying to reach some level of convergence. Note the mean level of the transient residual oscillation is the same as the steady state before stopping that run. aero_head likes this.

 October 11, 2017, 11:51 #5 Senior Member   Erik Join Date: Feb 2011 Location: Earth (Land portion) Posts: 1,091 Rep Power: 21 Looks to me like the time step is too large. How do you know what you chose it is appropriate?

 October 11, 2017, 12:59 #6 New Member   Join Date: Sep 2017 Location: Santiago, Chile Posts: 6 Rep Power: 6 So I tried letting the steady state simulation run longer so it could achieve a better level of convergence, and that solved the issue finally. Initially I used only 100 iterations, but in reality around 500 were needed, this was not done before because of time restraints. Thanks for the assistance Opaque. evcelica, the time step used followed some guidelines given past experiences on this kind of problem, and making it smaller (2 orders of magnitude) didn't solved the issue apparently. I hope this info is useful for someone else in the future, I'll give more if needed eventually. Regards

 Tags convergence, imbalances, residuals, timescale

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Mohit Singh Main CFD Forum 3 February 23, 2016 14:39 fayaazhussain Main CFD Forum 3 August 21, 2014 10:31 Sherlock_1812 OpenFOAM Running, Solving & CFD 7 August 20, 2014 09:39 Irene FLUENT 2 February 7, 2012 11:55 Jake FLUENT 3 June 16, 2005 09:34

All times are GMT -4. The time now is 22:58.