SimpleFoam bounded k and epsilon always diverging
3 Attachment(s)
Hello!
For some time now I'm having trouble with my simulations. I was hoping someone would be able to advise me on something I might be doing wrong. Full problem statement at the end. OF version: My version of OpenFOAM is the OpenFOAM for Windows from CFD-support. The version is 3.0.x. My simulation in short: I'm looking into pressure drop in a certain pipe configuration (single pipe, splits to double pipe and then single pipe again) using simpleFoam. So basically the geometry consists of an inlet patch, outlet patch and the walls. Since I'm looking for a pressure drop from constant inlet conditions, I'm looking for the steady state result. I've attached my fvSchemes, fvSolver files, below I stated some I.C. (0). I've only put k and omega here, but pretty much all turbulence models give divergent results. epsilon: Code:
dimensions [0 2 -3 0 0 0 0]; Code:
dimensions [0 2 -2 0 0 0 0]; Code:
dimensions [0 2 -2 0 0 0 0]; Code:
dimensions [0 1 -1 0 0 0 0]; The problem is that both k and epsilon (or omega for example, when using kOmega turbulence scheme) diverge after less than 10 iterations. No matter the timestep. The strange thing is that some time ago I did more or less the same simulations and these got results (but were quite off from actual measurements). I didn't change anything in any source code, so this seems really strange to me. The error message, as expected with divergence, is: Code:
Time = 0.0007 Since I have this problem for some time now, I have tried several thing: 1. Changing initial and boundary conditions I've changed more or less most initial conditions to previous values, small values, large values and even zero. Only the case for no flow (u inlet = 0) and no stated pressure, only pressureGradient = 0) gave a result, the expected result of nothing happening. Then changing the inlet velocity to 1 m/s gave again an exploding behavior for the turbulence parameters. 2. Laminar flow To look if the problem truly resides with the turbulence model I performed the case above for laminar flow with icoFoam. This gave a result which was more or less in line of the results I got when all was working. 3. Changing fvSchemes I've changed the divergent schemes, especially for epsilon and k, but all resulted in exploding behavior. This also means having bounded or not bounded schemes. 4. Changing solver and relaxation factors Changing the solver (used both GAMG and PCG) gave the same result. Also changing the relaxation factor (0.5, 0.7, 0.9, 0.98, 1) didn't led to any converging behavior. 5. Adapting mesh Regarding mesh: when running checkMesh gives an OK mesh. Despite this, I tried running the simulation with a mesh with and without BL refinement. No difference here. 6. Changing timestep As mentioned, changing the timestep didn't do anything to the divergent behavior. Ranging from 1s to 0.0000001s gave massive values within 10 iterations. 7. Running both in parallel as series To rule out an error in parallel running, I ran the simulations in parallel and without MPI. No change whatsoever. Any help would be very very welcome, since I'm getting a little frustrated with this and my time on this project is limited. Thank you very much in advance! Dennis |
Hi Deagle,
Found any solution for this problem? I have the same error message and I tried changing parameters but no success. If you or other have suggestions, I appreciate that. |
Hi,
What y+ are you using with k-epsilon model and off wall spacing? Best, |
All times are GMT -4. The time now is 06:56. |