CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

TwoPhaseEulerFoam and the ppMagterm

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2007, 06:34
Default One more! I am using twoPhase
  #1
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
One more!
I am using twoPhaseEulerFoam to simulate packing, which is very dependent on the particle-particle forces included in OF as ppMagf.

The current implementation of the particle-particle forces (in alphaEqn.H) uses the alpha value on the faces to calculate the ppMagf term as (psuedo code)

alphaf = fvc::interpolate(alpha);
ppMagf = exp( C*(alphaf - alphaMax) );

I will not elaborate here, but in short this expression is very numerically sensitive close to and above the packing limit.
I have found the following approach to be (substantially) more reliable.

ppMag = exp( C*(alpha - alphaMax) );
ppMagf = fvc::interpolate(ppMag);

I.e,. the force term is interpolated to the faces instead of alpha. This allows the forces to act earlier as the cell fills up and limits the unphysically high forces which otherwise develops (when alphaf is used). I would appreciate a comment on this approach!

Best Regards
Rasmus Hemph
hemph is offline   Reply With Quote

Old   February 23, 2007, 16:44
Default Hi Rasmus :-) The role of p
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Hi Rasmus :-)

The role of ppMagf is to avoid over-packing. Authors agree in telling its magnitude is not important as far as it prevents the unphysical packing of the dispersed phase and has a negligible effect far from the packing condition.

So, I think your approach is OK. I'm going to try it in some cases which gave me a lot of convergence problems with the current ppMagf implementation. A case is running right now.

Regards,
Alberto
__________________
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.
alberto is offline   Reply With Quote

Old   February 26, 2007, 04:23
Default Hi Alberto! I appreciate you
  #3
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
Hi Alberto!
I appreciate you trying the new formulation. I am curious to see how it behaves for cases other than packing.

Rasmus
hemph is offline   Reply With Quote

Old   February 26, 2007, 05:20
Default Hi Rasmus, I completed the fi
  #4
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Hi Rasmus,
I completed the first simulation. I'm doing a second one to see if the change to the algorithm influences the solution in some way.

For now, I noticed a great improvement in the stability of the solution. With the previous one I could not get convergence with dt = 1.0e-5s while now it's OK.

If the tests will confirm this, I'm thinking to do some experimentation with the kinetic theory implementation too, which is still very unstable when alpha -> alphaMax.

Regards,
Alberto
__________________
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.
alberto is offline   Reply With Quote

Old   March 5, 2007, 04:25
Default Glad to see it is improving th
  #5
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
Glad to see it is improving things for fluidized bed simulations as well (it should!). The problem about using alpha at the faces in the particle packing-force-calculation is easy to show for a case of settling particles.

Consider the bottom two cells in a 1D-settling simulation. As included in the current version of twoPhaseEulerFoam, the pp-forces are calculated at the faces as

alphaf = interpolate(alpha)
ppMag = exp(C(alphaf-alphaMax))

Normal values of alphaMax and C is 0.6 and 600, meaning that the forces should start to act at 60% particles and increase exponentially. The meaning of this term is to limit the maximum of alpha to approximately 0.62-0.65. However, as is shown in the picture, the approach of interpolating alpha to faces is faulty for cases of settling, and unstable in other cases.

At time step 1, the bottom cells is at alpha=0.6, but the value of alpha at the face is still at 0.45, so no forces act to stop packing. At time step 2, the value of alpha in cell center is at 0.75, which, by interpolation gives a alpha at 0.6 at the face, and packing finally seizes. The volume fraction is not only much to high, but the flow field is very unstable (in dimensions higher than 1) due to the large forces for large volume fractions.

//Rasmus
hemph is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TwoPhaseEulerFoam sara OpenFOAM Running, Solving & CFD 2 November 6, 2008 19:26
Bug in twoPhaseEulerFoam alberto OpenFOAM Bugs 2 May 20, 2008 21:25
TwoPhaseEulerFoam Bug alondono OpenFOAM Bugs 1 February 19, 2008 20:01
Bug in twoPhaseEulerFoam wallfunctions alberto OpenFOAM Bugs 1 February 9, 2007 14:15
TwoPhaseEulerFoam newbee OpenFOAM 0 March 27, 2006 08:41


All times are GMT -4. The time now is 01:23.