|
[Sponsors] |
Different results with icoFoam and simpleFoam..why??? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 10, 2010, 06:43 |
Different results with icoFoam and simpleFoam..why???
|
#1 |
Senior Member
Nilesh Rane
Join Date: Apr 2010
Posts: 122
Rep Power: 16 |
Hello all,
I am solving mixing of two jets in a chamber flow. I solved the case with icoFoam and simpleFoam, with same BCs and same fvschemes (turbulence was switched off in simplefoam). But strengely i am getting different flowfield for the two solvers. I am confused.. Can anyone think of any reason for this???
__________________
Imagination is more important than knowledge..
Last edited by nileshjrane; September 10, 2010 at 07:09. |
|
September 10, 2010, 08:29 |
|
#2 |
Senior Member
Nilesh Rane
Join Date: Apr 2010
Posts: 122
Rep Power: 16 |
I tried pisoFoam as well. It runs for laminar case. (I think laminar pisoFoam is same as icoFoam, correct me if i am wrong). But as soon as i switch on turbulence the solution blows in 3-4 iterations itself..i m specifying k and eps values based on turbulent intensity and length scale. I dont understand what is happening...
__________________
Imagination is more important than knowledge..
|
|
September 11, 2010, 15:23 |
|
#3 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
More details needed to answer
For example, for how long did you simulate with pisoFoam? Are both the solutions converged? Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
September 11, 2010, 16:12 |
|
#4 | ||
Senior Member
Nilesh Rane
Join Date: Apr 2010
Posts: 122
Rep Power: 16 |
I ran laminar pisoFoam simulation. This is the last timestep output:
Quote:
for icoFoam i ran case till about same time: Quote:
__________________
Imagination is more important than knowledge..
|
|||
September 11, 2010, 16:25 |
|
#5 | ||
Senior Member
Nilesh Rane
Join Date: Apr 2010
Posts: 122
Rep Power: 16 |
Here are the case files.
As soon as switch on turbulence, the solution diverges. Same thing is happening for simpleFoam. Quote:
The continuity error kills the solution.. There is some error for sure as whem i run potentialFoam for initialisation it gives me this massege: Quote:
__________________
Imagination is more important than knowledge..
|
|||
September 11, 2010, 19:56 |
|
#6 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Hi,
the solution is not converging also if the flow is assumed to be laminar. Your linear solvers settings are not good. The relTol to 0.5 on p is definetly not a good idea. Set the relTol to zero, and your conservation error will go to machine precision Adding a couple of non-orthogonal corrector steps allows a quicker reduction of the residuals on p. Relax k, eps with a factor of 0.2. P.S. Are data in m/s? Velocities seem quite high. Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
September 12, 2010, 04:38 |
|
#7 |
Senior Member
Nilesh Rane
Join Date: Apr 2010
Posts: 122
Rep Power: 16 |
Hello Alberto,
Your corrections seem to be working.. I will post the progress ASAP. Well, couple of quick questions: 1) what does relTol exactly means??? I guess i havnt got the correct idea. Say my relTol is 0.5 then what dies it mean?? 2) what are local, global and cumulative errors?? i have seen cumulative error sometimes very high than the other two or sometimes very low (in different simulations of coarse). Thank you for the help.. PS: the velocities are indeed very high. The fuel stream is at Ma=1 and air stream at Ma=0.3.
__________________
Imagination is more important than knowledge..
|
|
September 12, 2010, 15:21 |
|
#8 | |||
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Quote:
http://www.openfoam.com/docs/user/fvSolution.php Quote:
Quote:
Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
||||
September 12, 2010, 18:52 |
|
#9 |
Senior Member
Nilesh Rane
Join Date: Apr 2010
Posts: 122
Rep Power: 16 |
I am going to use rhoSimpleFoam or rhoPisoFoam as you have already suggested to me in another thread, but as a starting point i am doing incompressible simulations. I thought it will be a good experience.
Thanks for the help and the support. The simpleFoam simulations are giving same results as icoFoam now.
__________________
Imagination is more important than knowledge..
|
|
September 13, 2010, 03:14 |
|
#10 |
Senior Member
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17 |
Hi, just a quick comment. To run a simulation with nonphysical settings (like incompressible at Ma=1) is not a good experience, it is a bad habit and you will not learn much from it. You should always model the physics as the N-S equations will not converge what ever numerical settings you will try.
If you want first guess results around sonic speeds, you'd better try Euler flow (without viscosity). good luck matej |
|
September 13, 2010, 11:39 |
|
#11 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
I agree with matej, and unfortunately running with a non-physical setup seems to be a too common habit, at least judging from the questions on this forum.
A good part of the problems met by OpenFOAM users are due to their poor setup.
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
September 13, 2010, 16:08 |
|
#12 |
Senior Member
Nilesh Rane
Join Date: Apr 2010
Posts: 122
Rep Power: 16 |
Hello matej,
Thanks for your advice. Very true and i absolutely agree with you. I had started with rhoPisoFoam at first from Alberto's advice. By experience i didn't mean the 1st hand results. Its the 1st hand experience on OpenFoam. This is my 1st case with OF and using compressible solvers in a 3D simulation was leading me nowhere. Doing 2D incomressible simulation indeed helped me in the sense it gave me confidence that i can solve something in OpenFoam. First hurdle crossed. In that sense its a good learning experience. Anyway i am not giving the correct BCs in these simulations, i am not even specifying densities and pressures. I am not expecting the results to be correct. I'ld've done compressible inviscid simulation for 1st hand results. @alberto: You are correct, the problem is indeed the solver settings and BC for newbies. In fact i figured it out that its probably my BCs are unphysical. But thats part of the game in preliminary mechanical designs. You don't always know whether some BC gonna be unphysical or not or worse you have no other values to work with. By doing simulations only you improve on it. Leave apart BCs, but solvers, i would say its an uphill task getting hang of solver setting in OF. A bit difficult for beginners like me especially with inadequate documentation and c++ coding of OF. actually I started with velocity of 3m/s, which is pretty much in the incompressible range and slowly increased the velocity. Thanks to you all expert guys on the forum newbies like me survive here. PS: Today i read your wiki-guide on scalarTransportFoam. I wish we had somelike this for every solver. I will definitely try to write something like this when i'll become expert in OF. At least hoping so.. Thank you all for the help. I am gonna try rhoSimpleFoam and rhoPisoFoam now.
__________________
Imagination is more important than knowledge..
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pimpleFoam vs simpleFoam vs pisoFoam vs icoFoam? | phsieh2005 | OpenFOAM Running, Solving & CFD | 45 | March 22, 2021 10:14 |
Problem with transient simulation (icoFoam) | skabilan | OpenFOAM Running, Solving & CFD | 20 | June 18, 2014 12:36 |
SimpleFoam as Newtonian laminar flow solver | titio | OpenFOAM Running, Solving & CFD | 2 | March 8, 2013 05:44 |
coadles, simplefoam...icoFoam...channelOodles | mgolbs | OpenFOAM Pre-Processing | 2 | December 1, 2009 04:15 |
PS3 tutorial results | mgarcia | OpenFOAM | 4 | January 21, 2008 13:04 |