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

Acceptable residual oscillation for transient simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By krihamm
  • 1 Post By Gert-Jan
  • 1 Post By Gert-Jan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2018, 02:02
Default Acceptable residual oscillation for transient simulation
  #1
New Member
 
Join Date: Nov 2017
Posts: 27
Rep Power: 8
krihamm is on a distinguished road
Hi,

I am doing a transient simulation at Mach 1 to determine drag. I have added a monitor point to monitor the progression of drag. Time step is set to <delta x / u, upwind advection scheme, first order backward Euler transient scheme, first order turbulence numerics.

The monitor point is so far (after approx 11 hour simulation) smooth and still decreasing, although not converged yet. The residual profile is however showing no signs of smoothing out (see attachment).

How important is it that the residual profile is smooth when determining the accuracy of a simulation? If the monitor point eventually converges, is that enough to conclude good results, or should I troubleshoot and see if I can improve the residual profile?

Thanks!
Attached Images
File Type: png Residuals.PNG (40.2 KB, 271 views)
File Type: png Drag.PNG (24.3 KB, 205 views)
theoman likes this.
krihamm is offline   Reply With Quote

Old   February 8, 2018, 02:32
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
I would give it a bit more time, does not seem converged yet.

Also, you should check for MAX Residuals rather than RMS. The RMS can "cover up" higher residuals somewhere in the domain if they are low on the majority of the cells. I am using MAX res of 1E-3 for my steady runs, which is hard to get from the transient ones. If you are not able to get to this value (or some other you want to achieve) you should print a trn result step with the residuals and check where the highest residuals are in the domain in Post.

Residuals are not gonna smooth like your drag monitor for example, but they should lay below of some level you have to define.
AtoHM is offline   Reply With Quote

Old   February 8, 2018, 03:10
Default
  #3
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
- why do you use upwind (default high resolution) and first order in time (default 2nd order)?
- you only have 70 iterations. That is nothing. 200-500 is quite normal. So continue the calculation.
- did your computer take 11 hours to complete 70 iterations? How many nodes do you have?
Gert-Jan is offline   Reply With Quote

Old   February 8, 2018, 03:10
Default
  #4
New Member
 
Join Date: Nov 2017
Posts: 27
Rep Power: 8
krihamm is on a distinguished road
Quote:
Originally Posted by AtoHM View Post
I would give it a bit more time, does not seem converged yet.

Also, you should check for MAX Residuals rather than RMS. The RMS can "cover up" higher residuals somewhere in the domain if they are low on the majority of the cells. I am using MAX res of 1E-3 for my steady runs, which is hard to get from the transient ones. If you are not able to get to this value (or some other you want to achieve) you should print a trn result step with the residuals and check where the highest residuals are in the domain in Post.

Residuals are not gonna smooth like your drag monitor for example, but they should lay below of some level you have to define.
Thank you for your reply, I will check for max residuals instead! Is it possible to pause the simulation and change from RMS to max in setup and then continue the simulation, or do I need to restart the whole thing?
krihamm is offline   Reply With Quote

Old   February 8, 2018, 03:15
Default
  #5
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
you can do it on the fly. Just click inside the graph on the right mouse button and select "Switch Residual Mode"
krihamm likes this.
Gert-Jan is offline   Reply With Quote

Old   February 8, 2018, 03:15
Default
  #6
New Member
 
Join Date: Nov 2017
Posts: 27
Rep Power: 8
krihamm is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
- why do you use upwind (default high resolution) and first order in time (default 2nd order)?
- you only have 70 iterations. That is nothing. 200-500 is quite normal. So continue the calculation.
- did your computer take 11 hours to complete 70 iterations? How many nodes do you have?
I recall that upwind is more robust than high resolution. Am I mistaken? I have approx 2 600 00 nodes. Smallest node size 8.3433e-2 m and a flow speed of 343 m/s gives a very small time step in order for time step < delta x / u to be fulfilled. Max coefficient loops set to 4.
krihamm is offline   Reply With Quote

Old   February 8, 2018, 03:25
Default
  #7
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
Using upwind should be forbidden in CFX, since you have high Resolution. Especially around Mach 1.
Upwind and first order in time may be more stable, but inappropriate when it comes to accuracy. This is really a waste of time.

You could use upwind as a start to come to an initial condition in steady state. But even that is really unnecessary. I haven't used upwind in CFX for more than 12 years. Just stick to the defaults.
Gert-Jan is offline   Reply With Quote

Old   February 8, 2018, 03:37
Default
  #8
New Member
 
Join Date: Nov 2017
Posts: 27
Rep Power: 8
krihamm is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
Using upwind should be forbidden in CFX, since you have high Resolution. Especially around Mach 1.
Upwind and first order in time may be more stable, but inappropriate when it comes to accuracy. This is really a waste of time.

You could use upwind as a start to come to an initial condition in steady state. But even that is really unnecessary. I haven't used upwind in CFX for more than 12 years. Just stick to the defaults.
Thank you for your reply! I will change to high resolution and second order and compare. What is your recommendation for transient scheme? Second order also?
krihamm is offline   Reply With Quote

Old   February 8, 2018, 03:48
Default
  #9
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
Sure. Use second order in time.
krihamm likes this.
Gert-Jan is offline   Reply With Quote

Old   February 8, 2018, 04:20
Default
  #10
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
you can do it on the fly. Just click inside the graph on the right mouse button and select "Switch Residual Mode"
That was a bit misleading on my part. Yes as Gert wrote, you can directly switch to MAX in solver manager.
I was actually going for printing the residuals to a file so you can check where your mesh generates high values of it and improve it there if possible. That would be only required if you have high max residuals of course. IF it is: you have to define transient output in Pre -> Output Control -> Trn Results and there you can create an trn result item with "output equation residuals". If you dont want a hugh amount of data, take only selected variables output, not full and define some timesteps you are interested in, maybe 10,20,30,40,...
AtoHM is offline   Reply With Quote

Reply


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
chtMultiRegionSimpleFoam: maximum number of iterations excedeed. Nkl OpenFOAM Running, Solving & CFD 19 October 10, 2019 02:42
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 13:38
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 08:35
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 06:37


All times are GMT -4. The time now is 16:00.