CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Although having reduced the time step, the simulation is not converging

Register Blogs Community New Posts Updated Threads Search

Like Tree12Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2017, 18:53
Default
  #41
Senior Member
 
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 17
HectorRedal is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Good, that's what I expected.

However, you still can not be sure of further bugs in your code. The lid driven cavity test-case does not help in this assessment (we can discuss a lot about why) and you should still consider the analytical test-case to compute the solutions on several refined grids both while taking dt/h= constant and using via via refined time step fixing one grid with the smallest h you can use.
For sure, that there are more bugs in the code. One cannot be sure that your software is 100% free of bugs. That is true not only for the code developed by me but for any existing developed code (even commercial).

Not only have I tested my code with the lid cavity flow, but with a test case that simulates a flow through a two-dimensional rectangular channel with non-slip condition in the walls. Solution to this problem is well-known. The expected flow pattern is a parabolic profile.

I have also performed a convergence study taking dt/h constant.
I obtained the same order of convergence than for the lid driven cavity flow with less than 0.1% of deviation error from the theory.
HectorRedal is offline   Reply With Quote

Old   February 8, 2017, 21:16
Default
  #42
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,290
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Quote:
Originally Posted by HectorRedal View Post
Hi Arjun,

I really appreciate your help and support on this issue.

I would like to comment that finally I have found an error in the code when retrieving the value of the pressue from the previous step. There was an initialization error in a loop that iterates over the nodes of the TRIA element.
After having fixed the error, I have tested and it (reducing the time step), and it appears that it is working now.

I have tested with delta T = 10e-6 and even with 10e-7, and the solution does not blow up at all. It really provides quite accurate and good results, at first sight.

Thanks a log for your help.

BR

Glad that it worked out.
This is what makes CFD very difficult that when things don;t work we can not say anything with certainty.
arjun 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
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 14 December 17, 2019 00:12
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 08:09
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 01:01
time step directories naming issue Andrea_85 OpenFOAM 3 April 3, 2014 09:38
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 10:34


All times are GMT -4. The time now is 19:55.