|
[Sponsors] |
June 17, 2015, 10:40 |
twoPhaseEulerFoam and complex geometry
|
#1 | |
New Member
Benoit Soubelet
Join Date: Feb 2015
Posts: 5
Rep Power: 11 |
Dear all,
I have been struggling recently with twoPhaseEulerFoam in the case of a nuclear fuel bundle with helical wire spacers. I cannot get the simulation to stabilize and it always ends up with negative absolute temperatures (and void fraction) and then crashes: Quote:
But I was able to run it with simpleFoam and reach convergence even with turbulence. The results were close to the experimental ones and I thought I could move forward to 2-phase flow. I worked from the bubbleColumn tutorial, simplifying a little bit the boundary conditions (see attached), but keeping all the other thermo-physical properties. For the initialization of the turbulent parameters, I use some rules of thumb like for the turbulent intensity L ~ 5% and turbulent length ~ 5% of hydraulic diameter. So, if I take U=5 m/s as inlet velocity for a given phase. k = 1/2*(U*I)^2 = 3.1e-2 m2/s2 Then for hydro diam ~ 3e-3m, we have L ~ 1.5e-4m It gives for epsilon = C_mu^0.75 * k^1.5 / L = 6 m2/s3 I was only able to run a simplified case (without helical wire spacers) in a laminar case and with a "constant" "diameterModel" with "d 1e-4", for the air phase. But obviously, I'm interested in the full case with turbulence! I cannot share my mesh, as it is too big. But it is quite straightforward layout: vertical shape, inlet at the bottom, outlet at the top. The side faces are either walls or cyclicAMI boundaries communicating between each other (see picture attached). In the end, I want to simulate an isothermal flow, so I wish I could get rid of the energy equation. I have the impression it is the source of all my problems. The several cyclicAMI boundaries might be source of the problem also ... (but again, running fine with simpleFoam). So if you have ever encountered such issues with OpenFOAM, and found a way around, I would be very happy to learn from your experience! Best regards |
||
June 17, 2015, 14:59 |
|
#2 |
Member
Michael Page
Join Date: Mar 2009
Location: Quebec, Canada
Posts: 36
Rep Power: 17 |
Hi Benoit
I had similar issues with cht simulation. To pass through this error, I first run the simulation in a laminar state for some hundred iterations. After, I restart the simulation with the turbulence activated (you may have to copy your turbulence files in the last timestep) Also, I'm working to make a new solver twoPhaseEulerDyMFoam and I meet some difficulties. Do you have try twoPhaseEulerFoam with cyclicAMI boundary? Best Regards, |
|
June 17, 2015, 15:29 |
|
#3 |
New Member
Benoit Soubelet
Join Date: Feb 2015
Posts: 5
Rep Power: 11 |
Thanks for the tip I will try this tomorrow morning!
To be sure: you are forcing a laminar treatment first, even if your case is turbulent, and then you switch the turbulences on? About you cyclicAMI question, I'm not sure I understand your question. If you ask if my current twoPhaseEulerFoam simulation includes cyclicAMI boundaries, yes it is the case. I have 14 couples of cyclicAMI boundaries. |
|
June 17, 2015, 15:34 |
|
#4 |
Member
Michael Page
Join Date: Mar 2009
Location: Quebec, Canada
Posts: 36
Rep Power: 17 |
Hi,
Yes, you set your turbulences as laminar at first. After, switch to your turbulence model. For cycliAMI, you answer to my question Thank you, |
|
July 2, 2015, 08:40 |
|
#5 |
New Member
Benoit Soubelet
Join Date: Feb 2015
Posts: 5
Rep Power: 11 |
Hello,
The turbulence trick didn't work in the end, I was still obtaining crashes after a while. We found a way around by by-passing the solution of these equations in the fvSolution file: Code:
"e.*" { solver smoothSolver; smoother symGaussSeidel; //tolerance 1e-7; relTol 2; minIter 0; } After several thousands of iterations, I was able to switch them on again with: Code:
"e.*" { solver smoothSolver; smoother symGaussSeidel; tolerance 1e-7; relTol 0; minIter 1; } |
|
July 2, 2015, 09:17 |
|
#6 |
Member
Michael Page
Join Date: Mar 2009
Location: Quebec, Canada
Posts: 36
Rep Power: 17 |
Hi Benoit,
You can also play with nAlphaCorr and nAlphaSubCycles. This help in my case. Also, how is your mesh quality with checkMesh? |
|
July 2, 2015, 09:23 |
|
#7 |
New Member
Benoit Soubelet
Join Date: Feb 2015
Posts: 5
Rep Power: 11 |
Oh I didn't know these options! Thank you, I will look into it.
I put the checkMesh output in my first post; according to the utility, the main issue is the non-orthogonality, which is quite high. I'm using a limited 0.33 scheme to partially correct it; I can't go further, it then becomes too unstable. |
|
July 2, 2015, 11:50 |
|
#8 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 848
Rep Power: 18 |
Hello,
I played with this solver for a long time. Im sure for now its not compatible with tet mesh or moderately bad hex mesh. I tried with 171 - 22x. But from my memory, 23x can not deal with tet mesh either. In all these versions(besides 23x), turbulence model is hard coded. Just check the code. If U are using these versions twoPhaseEulerFoam. I strongly suggest U to use low skewness hex Mesh. Hex mesh is important. If u can not assure your hex's skewness. twoPhaseEulerFoam can only run with laminar. But with tet mesh, it will make delta T extremely small which makes no sense.
__________________
My OpenFOAM algorithm website: http://dyfluid.com By far the largest Chinese CFD-based forum: http://www.cfd-china.com/category/6/openfoam We provide lots of clusters to Chinese customers, and we are considering to do business overseas: http://dyfluid.com/DMCmodel.html |
|
Tags |
cyclicami, energy, negative temperature, twophaseeulerfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
twoPhaseEulerFoam bubble column crashes due to problems at outlet region | hester | OpenFOAM Running, Solving & CFD | 5 | July 21, 2024 09:19 |