|
[Sponsors] |
simpleFoam blows up - no error (MWE included) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 14, 2017, 13:49 |
simpleFoam blows up - no error (MWE included)
|
#1 |
New Member
Dominik Pöltl
Join Date: Jul 2013
Location: Hamburg
Posts: 21
Rep Power: 13 |
Hi all,
I'm stuck with a should-be-easy simpleFoam case. Long story short:
The problem: The first two time steps look fine. But then, large fluctuations on the bordering walls appear, that don't dampen down anymore. So: no convergence. meshFault_01.png meshFault_02.png meshFault_03.png You can find a GIF of the evolution here What did I check so far? checkMesh -> OK. other BC -> still blows up faulty assignment of patches in the STL file -> nope. Honestly - what didn't I check? The fvSolutions entries - since they're copied from an earlier case, that worked just fine. The levels of refinement of SnappyHexMesh What is my question? What can I change to prevent this blow up and get nice convergence? The STL file is 3.6MB large, so no nice upload here. You can finde a zipped Minimal Working Example here |
|
December 14, 2017, 18:00 |
|
#2 |
Senior Member
|
Hi,
Just basics (I did not check any further after spotting these "features"): - Your mesh is non-orthogonal (max 55). - You have 0 non-orthogonal correctors (I would suggest 1 or 2). - You use "Gauss linear" for gradient, "leastSquares" would be more suitable. - You use "corrected" for laplacian and snGrad (try limited correction) - Start with upwind, converge, and then proceed with second order schemes. |
|
December 15, 2017, 09:38 |
some tweaks work
|
#3 | ||
New Member
Dominik Pöltl
Join Date: Jul 2013
Location: Hamburg
Posts: 21
Rep Power: 13 |
Alexey, I owe you.
long story short: with some tweaks according to your advice, the error doesn't occur. Instead of 16h, my sim ran 53 min. I adapted Code:
maxNonOrtho 25; Now, with a value of 25, checkMesh yields -can you guess?- 45. Don't know why. Quote:
Quote:
Anyway. Thanks for your advice! |
|||
December 16, 2017, 13:20 |
|
#4 | ||
Senior Member
|
Quote:
Quote:
|
|||
March 5, 2018, 09:01 |
clarifications
|
#5 |
New Member
Dominik Pöltl
Join Date: Jul 2013
Location: Hamburg
Posts: 21
Rep Power: 13 |
Dear Alexey,
I've been running a few sims with this little tweak and that little tweak - all bearing in mind your recommendations. Problem is: none of the "leastSquare" ones converge. So I want to ask some things, just to make sure, I don't misunderstood:
|
|
March 5, 2018, 09:20 |
|
#6 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
I recommend to build up the case step by step:
- start with a single meander - if possible (and its should be) make it with blockmesh, and make a mesh which is well balanced - experiment a bit with different boundary conditions and mesh densities. - then - with this experience - add a second meandering or the junction - with that in heart you may built the case all in all
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
March 10, 2018, 19:27 |
|
#7 |
Senior Member
|
Dear Dominik,
1. No, I did not mean that. In both cases you have "pressure equation linear solvers" (i.e. in simpleFoam you have SIMPLE, in pimpleFoam you have PISO with outer iterations). 2. Yes, relaxation factors influence your convergence. Now real question is: do you need leastSquares? The reason for bad convergence could be: - Oscillations due to second order. So basically, we have second order but no convergence. - Since there are no plots of residuals in your post, I assume 'none of the "leastSquare" ones converge.' are in fact "I did not put enough iterations till convergence". - For "consistent yes" relaxation factors of 0.9 are OK, yet in general it is 0.7/0.3 for U/p (0.8/0.2 in original papers, sum should be 1). |
|
Tags |
blowing up, convergence, simplefoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Definition of y+ in yPlusRAS (1.7.1) | Taka1 | OpenFOAM Programming & Development | 41 | May 23, 2020 13:05 |
error compiling modified applications | yvyan | OpenFOAM Programming & Development | 21 | March 1, 2016 05:53 |
simpleFoam temperature blows up | tellico | OpenFOAM Running, Solving & CFD | 0 | June 24, 2013 14:19 |
simpleFoam Blows up with Parabolic Inlet Pipe Flow | swahono | OpenFOAM | 0 | December 6, 2010 20:37 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 07:59 |