CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Unable to reach monotonic convergence with mesh refinement (https://www.cfd-online.com/Forums/cfx/236101-unable-reach-monotonic-convergence-mesh-refinement.html)

parth_k May 13, 2021 19:43

Unable to reach monotonic convergence with mesh refinement
 
1 Attachment(s)
Hi,

I'm simulating a CHT sinusoidal oscillatory flow on CFX using adaptive time stepping (with a moderate initial timestep guess, wide values of min and max timesteps, 2-5 target loops range and 1-10 min-max coeff loops) for 5 different structured mesh sizes between 1700k cells and 91k cells. Results are run over sufficient simulation times enough to achieve the transient periodicity nature. Courant number is max upto 3. Normalized imbalances are at 0% for flow var and ~-0.1% for energy.
For both the fluid and HT variables I observe an overlapping trend of results with a very minor difference of ~0.05% only between 5 grid sizes. Since this shouldn't be the expectation and the monotonic decrease or increase between the values is clearly not noticed. Appears like an oscillatory convergence nature?

Request you assist me with any recommendations to further achieve reliability of results for mesh independence. I can provide any necessary snapshots from simulation. Max momentum and energy residual plot is attached.

Many thanks.

ghorrocks May 14, 2021 05:53

I do not quite understand what you are asking. Are you saying that the 5 mesh sizes you tested are all within 0.05%? If so, then that suggests your meshes are adequately fine and the coarsest mesh is OK to use.

Don't forget that doing a sensitivity analysis on convergence criteria is often a good idea as well. Rerun the coarse mesh case with the convergence criteria tightened by a factor of 10 and see if that changes results. If no change in results then your results are good, if you get a change you will need to tighten the convergence criteria.

parth_k May 14, 2021 08:16

1 Attachment(s)
Thanks Glenn for your prompt and precise answer, a few queries still.

As per your comment yes from results it appears my mesh is adequately fine even with a coarse grid of 91k cells. But I suspect if that's a valid case to correctly represent the physics of a simple laminar CHT, given I have a rectangular duct of (10 x 14 x 350)mm long dimensions. What do you think?

Sure, I have considered the convergence sensitivity analysis to carry on further. Currently convergence criteria is set to 1e-5 target RMS.

But in regard to the mesh refinement study can you provide me the right approach to execute one, given this underlying issue between distinct grid sizes or is this nature acceptable to be reported in such a case? (zoomed image of overlapping Pressure variable values attached below for 6 grid sizes)

Thanks again.

Opaque May 14, 2021 08:36

Since you are doing a time-periodic simulation, your monitor points should show some specific/expected frequencies.

You can create a polar plot in the ANSYS CFX Solver Manager of the monitor point of interest using the expected period of the signal. If the plot goes over itself without any distortion between periods your solution has reached a periodic state.

parth_k May 14, 2021 09:24

Quote:

Originally Posted by Opaque (Post 803817)
Since you are doing a time-periodic simulation, your monitor points should show some specific/expected frequencies.

You can create a polar plot in the ANSYS CFX Solver Manager of the monitor point of interest using the expected period of the signal. If the plot goes over itself without any distortion between periods your solution has reached a periodic state.

Hi Opaque, many thanks for your tip. Yes have just checked as said and the plot shows a symmetric cyclic behavior which is as per the expectation since I'm simulating the models over a sufficiently long period to achieve transient stability.

However, my query still remains on performing a mesh independence test for my model. Can you recommend on it kindly (Issues described in posts above)? Thanks.

Opaque May 14, 2021 09:55

Have you done the time step independence study as well?

If you want to model an accurate oscillatory signal you need an appropriate timestep.

The Courant number is (in my opinion) irrelevant for acuraccy purposes unless you write the truncation error as a function of Courant no.

Accuracy is a function of truncation errors (spatial and transient), and it can only be controlled by the proper sizing of the timestep and spatial mesh until the solution is no longer dependent on the chosen values.

Looking at your convergence plots, it seems you are either running out of coefficient loops or have a high residual target for energy. It seems you are aiming at 10^-4, and not 10^-5.

Hope the above helps

parth_k May 14, 2021 10:38

Quote:

Originally Posted by Opaque (Post 803827)
Have you done the time step independence study as well?

If you want to model an accurate oscillatory signal you need an appropriate timestep.

The Courant number is (in my opinion) irrelevant for acuraccy purposes unless you write the truncation error as a function of Courant no.

Accuracy is a function of truncation errors (spatial and transient), and it can only be controlled by the proper sizing of the timestep and spatial mesh until the solution is no longer dependent on the chosen values.

Looking at your convergence plots, it seems you are either running out of coefficient loops or have a high residual target for energy. It seems you are aiming at 10^-4, and not 10^-5.

Hope the above helps

Hi Opaque, regarding your first comment - I'm running an adaptive timestepping with a fairly wide limits for the min and max timestep range. I input a guess of about 1/(f*100) for the initial timestep and then let the sim to workaround between the adaptive limits. As I have even tried going to a lower timestep size value but it gives me an cfx-overflow error after a few its. Further I have no problem with the oscillatory signals and the velocity/pressure etc. plots are all in line with the expectations.

Further, yes I'm encountering some strange jumps and unusual skewness in the thermal parameters, perhaps I'll try with a tighter convergence criteria overall 1e-4 perhaps? Coefficient loops between 1-10 should be still fine?

Also would you suggest to re-run those 5 mesh sizes with different timestep setup for each? The zoomed plot I've added is with same adaptive timestep settings for all of them.

Thanks for helping out.

Opaque May 14, 2021 10:51

Apologies I missed the adaptive time-stepping initial comment.

I have not used adaptive time-stepping myself often to know if it converges to repeatable steps periodically, i.e. every period of the solution uses EXACTLY the same steps as the previous period.

If it does not, the non-periodic integration may introduce a numerical behavior that does not go away easily. For example, for a sinusoidal boundary condition, it could see a different maximum/minimum amplitude between periods which translates into a different wave propagation, i.e. delta BC that is not physical


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