CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Oscillating residuals

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

Like Tree1Likes
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2017, 13:29
Default Oscillating residuals
  #1
New Member
 
Join Date: Sep 2017
Location: Santiago, Chile
Posts: 6
Rep Power: 9
juan4815 is on a distinguished road
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
juan4815 is offline   Reply With Quote

Old   October 5, 2017, 13:39
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,860
Rep Power: 33
Opaque will become famous soon enough
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,
Opaque is offline   Reply With Quote

Old   October 5, 2017, 13:54
Default
  #3
New Member
 
Join Date: Sep 2017
Location: Santiago, Chile
Posts: 6
Rep Power: 9
juan4815 is on a distinguished road
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
File Type: png residual_osc.png (162.9 KB, 263 views)
juan4815 is offline   Reply With Quote

Old   October 5, 2017, 14:42
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,860
Rep Power: 33
Opaque will become famous soon enough
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.
Opaque is offline   Reply With Quote

Old   October 11, 2017, 11:51
Default
  #5
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,184
Rep Power: 23
evcelica is on a distinguished road
Looks to me like the time step is too large. How do you know what you chose it is appropriate?
evcelica is offline   Reply With Quote

Old   October 11, 2017, 12:59
Default
  #6
New Member
 
Join Date: Sep 2017
Location: Santiago, Chile
Posts: 6
Rep Power: 9
juan4815 is on a distinguished road
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
juan4815 is offline   Reply With Quote

Reply

Tags
convergence, imbalances, residuals, timescale

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Oscillating residuals in steady flow problem Mohit Singh Main CFD Forum 3 February 23, 2016 14:39
Reason for oscillating residuals fayaazhussain Main CFD Forum 3 August 21, 2014 10:31
Oscillating residuals and no convergence! Sherlock_1812 OpenFOAM Running, Solving & CFD 7 August 20, 2014 09:39
Solution not converging, but oscillating residuals around a constant value Irene FLUENT 2 February 7, 2012 11:55
Oscillating Residuals in Finer Mesh Case Jake FLUENT 3 June 16, 2005 09:34


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