|
[Sponsors] |
Although having reduced the time step, the simulation is not converging |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 6, 2017, 07:35 |
|
#21 | |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 17 |
Quote:
|
||
February 6, 2017, 08:44 |
|
#22 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,290
Rep Power: 34 |
Quote:
This was really important information. The part in FE type solvers that does the job of dissipation is related to 'inf - sub' condition. Since I am not an expert on FE solvers, I can not write about it in detail but I know that this directly affect the stability and the dissipation that we talk about. It is also related to mesh size. For example http://onlinelibrary.wiley.com/doi/1...m.508/abstract |
||
February 6, 2017, 11:15 |
|
#23 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
Be careful, an artificial viscosity does not mean an error in the discretization of the diffusion! Conversely, it is typical of the discretization of time derivative along with convective term. |
||
February 6, 2017, 12:00 |
|
#24 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,290
Rep Power: 34 |
Quote:
What he said. It is not the error in viscosity but a error that has effect similar to viscosity in system. |
||
February 6, 2017, 12:06 |
|
#25 | |
Senior Member
|
Quote:
PS: Please bear with me with my typos, I was writing from my cell phone and my dictionary betrayed me. !! |
||
February 6, 2017, 12:48 |
|
#26 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
What I want to say is that given the physical (positive) viscosity in the diffusive term, a blow-up corresponds to an asymptotic increasing of the gradient of the solution, a fact that can be explained by an artificial negative viscosity that is greater than the physical one. Since that happens for small time-step my idea is: 1) a spatial error that produces such negative viscosity and appears when the time step is small 2) an error in the time integration, that means the scheme is not consistent |
||
February 6, 2017, 12:49 |
|
#27 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
||
February 6, 2017, 12:57 |
|
#28 |
Senior Member
|
Professor, I have a question in regards the analytical test case that you have suggested. We usually do not have the analytical solution of the problem, how can we perform such as analysis?
My guess is that, it is possible to implement the exact discretization scheme (in time and space) that we implemented in our CFD but for the convection equation in 1D whose analytical solution is known. However, I am not sure if the viscous term is present in the convection equation. In case we had the analytical solution (convection + diffusion), we will be able to compare the analytical solution with the numerical solution. Is this the right track or I am definitely pointing to a wrong direction? Could you please provide references or guidance to perform such as analysis? I would appreciate that since that analysis is quite useful for identifying bugs. Thanks!! |
|
February 6, 2017, 13:16 |
|
#29 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
http://onlinelibrary.wiley.com/doi/1...20D31EB.f04t04 |
||
February 6, 2017, 13:21 |
|
#30 |
Senior Member
|
Thank you very much professor. !
|
|
February 6, 2017, 17:00 |
|
#31 | |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 17 |
Quote:
https://www.researchgate.net/publica..._CBS_algorithm So, I understand the inf-sup condition is also satisfied. |
||
February 6, 2017, 17:05 |
|
#32 | |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 17 |
Quote:
- One coarse mesh - A medium mesh - A fine mesh I measured the L_0 and L_inf error of the solution obtained in each mesh, then take the logarithm of that error and draw the straight line fit that passes throught the three points. The slope of the line gives me the order of the algorithm, which was aproximately 2. I have to admit that I didn't take the dt/dh constant. |
||
February 6, 2017, 19:26 |
|
#33 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
well, the lid-driven cavity is not suitable to perform a convergence analysis ... use instead the analytical solution and use the L_inf norm on both velocity component. |
||
February 7, 2017, 08:18 |
|
#34 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,290
Rep Power: 34 |
Quote:
On paper though, in FV Rhie and Chow should take care of coupling but in practice the coupling weakens as time step goes down or skew increases. So i wished you look into it if this is the case in FE too (in my understanding they behave quite similar but i am not sure). |
||
February 7, 2017, 17:24 |
|
#35 | |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 17 |
Quote:
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 |
||
February 8, 2017, 11:59 |
|
#36 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
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. |
|
February 8, 2017, 12:22 |
|
#37 |
Senior Member
|
I was thinking about that , the why??? Yesterday, you mentioned that the cavity flow was not the most appropriate case, but I was not able to find out the reason.
It would be very interesting to know the reasons. !! |
|
February 8, 2017, 12:30 |
|
#38 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
First of all, the solution of the lid-driven cavity is obtained by your code. Therefore, if you have a bug and it does not produce a blow-up, the solution you will use contains an error that you simply scale-off from the convergence analysis. Second, the slope must be evaluated asymptotically, therefore if you do not have an analytical solution you have to introduce some corrections (we discussed about that). A very refined grid is necessary |
||
February 8, 2017, 12:37 |
|
#39 |
Senior Member
|
Thanks professor; I thought that the reasons were more from another physical limitation of the cavity flow.
Although your last comment summarize very well the discussions in this post. |
|
February 8, 2017, 12:46 |
|
#40 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
||
|
|
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 |