|
[Sponsors] |
March 5, 2012, 06:56 |
unexpected flow speeds within porous zones
|
#1 |
New Member
BT
Join Date: Jan 2011
Posts: 16
Rep Power: 15 |
Dear openFoam-Community,
I am just analyzing flows through porosities and thereby I have found out that the flow speed within the porosity seems to have a strange and unexpected characteristic. For example in the case attached (see picture, x direction flow speed in lila with values on the left vertical axes, pressure in black with values on the right vertical axes, picture of the porosity in x direction in the top part in order to show the cell resolution) the flow through the porosity is in x-direction only. Flows in y and z dirction are very close to 0. So I would expect that the flow through the porosity is at constant level and independly from the x coordinate. But the result from plot over a line shows another behaviour whereby the flow speed degreases first and come only back to a stable behaviour (as expected) after 4 or 5 cells in x direction. Briefly before the flow leaves the porosity a similar beahviour can be observed. At the same time velocities in y and z direction are very close to 0 (not shown in the picture) what also seems to be a conflict in continuity from my point of view. On the other side pressure behaviour is close to the expectations. At the beginning I assumed that that resolution of my porosity wasn't fine enough and only the first cell in x direction would be affect so to speak as a transition effect but now I have refined the mesh and can see that the effect doesn't depend from the mesh fineness too much. Therefore I want to kindly ask the following questions: 1) How can the observed effect be explained? 2) What about law of continuity conservation, is it violated? 3) Can I trust in the flow speed values reached in the center of the porosity or which flow speed can be seen as representative? Many thanks in advance for your helping! Cheers Ben Theobald |
|
March 5, 2012, 16:04 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
It seems that OpenCFD doesn't think that it is a problem (we can discuss about the fix that was provided, but the problem is there) |
||
March 6, 2012, 04:15 |
|
#3 |
New Member
BT
Join Date: Jan 2011
Posts: 16
Rep Power: 15 |
Many thanks for the hint. I'll check if the described fix helps in OF2.1 as well and give a feedback.
|
|
April 13, 2012, 08:29 |
|
#4 |
New Member
Join Date: Jan 2012
Posts: 7
Rep Power: 14 |
Have you tested the proposed fix? I think I have encountered the same bug. I have a case which I tested in both OpenFOAM and Fluent and the velocity profile looks very different in the porous interfaces.
|
|
April 16, 2012, 05:50 |
|
#5 |
New Member
BT
Join Date: Jan 2011
Posts: 16
Rep Power: 15 |
Hey Kalas,
I am sorry but I haven't tested it so far. So it is still on my to do but not forgotten. In coming weeks I will have simulation projects again and then I will test the fix and report the result. If you should test it before it would be nice to read the result on your side. Cheers Ben |
|
April 20, 2012, 03:29 |
|
#6 |
New Member
Join Date: Jan 2012
Posts: 7
Rep Power: 14 |
Hello again!
Now I have tested the proposed fix, but my results were the same as before. I am not sure I applied it correctly though. I am using rhoPorousMRFSimpleFoam and changed pEqn.H as suggested above, is that the correct way to implement the fix? Cheers, Klas |
|
April 20, 2012, 05:10 |
|
#7 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
- Check that it really hit the files (strange things happen) - recompile all the relevant libraries (or do ./Allwmake in $FOAM_SRC. That should recompile everything affected - recompile the solver (not sure whether the relevant code parts are inlined or in the binary of the library) |
||
April 20, 2012, 06:08 |
|
#8 |
New Member
Join Date: Jan 2012
Posts: 7
Rep Power: 14 |
Hmm ok,
I don't have access to the global installation and hoped it would suffice to make a new binary for the solver. But just to be clear what I did, I edited $FOAM_SOLVERS/compressible/rhoPorousFoam/rhoPorousMRFSimpleFoam/pEqn.H where I changed the line U -= trAU()*fvc::grad(p); to U = (fvc::reconstruct(phi))/rho;. Im pretty sure this made it into the file because i changed some output text which was changed in the solver output after I ran the recompiled solver from my $FOAM_USER_APPBIN. This solver works but gives exactly the same solution as the original.. |
|
April 20, 2012, 08:02 |
|
#9 |
New Member
BT
Join Date: Jan 2011
Posts: 16
Rep Power: 15 |
Hey Kalas,
besides, which version are you using? OF2.1? Regards Ben |
|
April 20, 2012, 09:33 |
|
#10 |
New Member
Join Date: Jan 2012
Posts: 7
Rep Power: 14 |
Yep, I'm using 2.1.
|
|
April 23, 2012, 20:22 |
|
#11 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
You should see some difference. Make sure with 'which rhoPorousFoam' that the new solver is actually used (or add some output to make sure) |
||
May 2, 2012, 08:48 |
|
#12 |
New Member
Join Date: Jan 2012
Posts: 7
Rep Power: 14 |
Hi again!
I changed some output text so that I'm sure it is the changed solver being used. The solution is not exactly the same, but I still have oscillating velocities in the interface when entering the porous zone. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compressible flow through porous media? | JoFFe | CFX | 2 | November 1, 2010 05:50 |
flow through porous fibers | ranjith | Main CFD Forum | 1 | May 24, 2008 10:05 |
Porous medium flow | shailesh | OpenFOAM Running, Solving & CFD | 8 | September 14, 2007 06:18 |
porous media flow | Siraj | Siemens | 4 | February 24, 2006 23:24 |
air flow through porous pipe | faiz rauf | FLUENT | 3 | August 11, 2004 16:08 |