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

solidParticleFoam reflection?

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By andrewryan
  • 2 Post By Sylvain

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 5, 2011, 07:59
Default solidParticleFoam reflection?
  #1
Member
 
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 17
andrewryan is on a distinguished road
Dear Foamers

Looking at solidParticleFoam I didn't understand what the code in hitWallPatch (in solidParticle.C) is supposed to do, it looks like it just inverts the direction of the particle??

Code:
    vector nw = wpp.faceAreas()[wpp.whichFace(face())];
    nw /= mag(nw);

    scalar Un = U_ & nw;
    vector Ut = U_ - Un*nw;

    if (Un > 0)
    {
        U_ -= (1.0 + td.spc().e())*Un*nw;
    }

    U_ -= td.spc().mu()*Ut;
Anyways I just replaced it a formula for specular reflection.

Code:
    vector n = wpp.faceAreas()[wpp.whichFace(face())];
    n /= mag(n);
    U_ -= 2 * (U_ & n) * n;
The result now looks much better in paraview.
randolph likes this.
andrewryan is offline   Reply With Quote

 


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
shock tube reflection boundary conditions euler 1d micheletuttafesta Main CFD Forum 1 May 8, 2010 11:01
boundary reflection shuo OpenFOAM 1 March 9, 2010 15:10
boundary reflection shuo Main CFD Forum 0 March 9, 2010 01:18
solidParticleFoam particle positions caw OpenFOAM Running, Solving & CFD 1 October 6, 2009 03:50
Reflection coefficient of particle in DPM model S.J.R FLUENT 1 June 9, 2007 19:03


All times are GMT -4. The time now is 11:16.