simpleFoam + cyclic pipe = unstable?
3 Attachment(s)
Hi all,
I usually use profile for U,k,epsilon,omega from cyclic pipe simulations as input for my actual case. Unfortunately, I don't get them converged in openFOAM. So the setup is a short pipe that I mesh with ICEM: Attachment 35559 After loading the mesh to openFoam (fluent3dMeshtoFoam), I change the constant/polyMesh/boundary file to: Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
PER_PIPE_INLET Code:
/*--------------------------------*- C++ -*----------------------------------*\ This is how a typical residual plot looks like: Attachment 35560 So I get these crazy jumps in residuals and no smooth convergence at all. However, profiles of the solution look reasonable (here "U"): Attachment 35561 What I already tried:
Now: Can anyone please help me? :( |
1 Attachment(s)
With the mappedPatch boundary I get pretty nice convergence, just as I expected:
Attachment 35569 |
2 Attachment(s)
Hi,
maybe I my guess on dimensions of the tube is not quite correct. Here's the case (attached to the message) with cyclic inlet/outlet and it seems to be converging (though rather slow). I've stopped simulation around 900th iteration (decided to reduce relTol of linear solvers and it seems to increase convergence rate), residuals evolution plot is also attached to the message. As usual, mesh is in GEO format, so you need Gmsh to run the case. |
Though it seems, simulation got stuck at pressure residuals of order 1e-2.
|
Right, it's always like "Yeahaaa it works!!! .... well... no..."
|
Hi Philipp,
I have the same problem with pipe. When I do the simulation with LES it works fine, but with RANS I don't get a convergent case. For RANS I tried pimpleFoam and simpleFoam. The results looks not so bad (but not good enough), but the residuals are far from good. How do you use mappedPatch boundary for pipeflow??? Do you use it with fvOptions?? kind regard Florian |
Hi,
I changed the boundary file to Code:
Inlet Now, in my "0" directory I made some changes: Velocity: Code:
Inlet pressure: Code:
Code:
Inlet Philipp. |
Hi Philipp,
thx for your help. k-epsilon works now. I will test some other models (k-omega, v2f ...). I am a little bit confused why the cyclic bc + fvOptions does not work. I have done it with LES and everything works, but for RANS no chance. kind regards Florian |
I read a comment in this forum (don't know where) where someone states, that he thinks SIMPLE needs some kind of additional correction to work with cyclic. I don't know if that is true, but if PIMPLE / PISO works and SIMPLE doesn't it is at least some good idea...
|
Hi,
I have tested it with piso and pimple. The convergence was better but not good. With PISO/Pimple you can do some pseudo-timestepping. This improves your convergence. This works as well with the mapped bc. I will give it a shot and compare the rate of convergence. I can live with your solution (using mapped boundary + SIMPLE). :) kind regards Florian |
All times are GMT -4. The time now is 20:47. |