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

Errors in twoPhaseEulerFoam's Kinetic Theory

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By RjwV

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2015, 13:51
Default Errors in twoPhaseEulerFoam's Kinetic Theory
  #1
New Member
 
Ramon
Join Date: Feb 2014
Location: Eindhoven
Posts: 25
Rep Power: 12
RjwV is on a distinguished road
Hello everyone,

I believe I have found two errors in the Kinetic Theory of Granular Flow as implemented in OpenFOAM. I am currently working with v. 2.3.0, but counts for all versions up to 2.4.x.

Number one; the frictional pressure and viscosity have not been added to the solids pressure and solids shear viscosity before solving ThetaEqn. The code snippets as posted below here define nut and PsCoeff, which are directly used in ThetaEqn. In literature, usually the frictional pressure and viscosity are added before solving the granular energy equation.

Code:
nut_ = viscosityModel_->nu(alpha, Theta_, gs0_, rho, da, e_);
Code:
        volScalarField PsCoeff
        (
            granularPressureModel_->granularPressureCoeff
            (
                alpha,
                gs0_,
                rho,
                e_
            )
        );
Number two; In the Schaeffer frictional stress file, in the function for the viscosity, the frictional viscosity is only calculated if alpha1 exceeds alphaMax. In this case, alphaMax is the maximum packing of the solids, which should not be exceeded in any case, so the frictional viscosity should (theoretically) never be calculated in this case. I believe alphaMax should replaced be the minimum friction hold-up, alphaMinFriction.

Code:
        if (alpha1[celli] > alphaMax.value() - 5e-2)
        {
            nuf[celli] =
                0.5*pf[celli]*sin(phi_.value())
               /(
                    sqrt(1.0/6.0*(sqr(D[celli].xx() - D[celli].yy())
                  + sqr(D[celli].yy() - D[celli].zz())
                  + sqr(D[celli].zz() - D[celli].xx()))
                  + sqr(D[celli].xy()) + sqr(D[celli].xz())
                  + sqr(D[celli].yz())) + I2Dsmall
                );
        }
If anyone can comment on / confirm these possible errors, please let me know.

Kind regards,
Ramon
BlnPhoenixKA likes this.
RjwV is offline   Reply With Quote

Old   August 17, 2015, 18:24
Default
  #2
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 13
ssss is on a distinguished road
If you are sure of the bugs, you could send this bug report to the openfoam mantis, the developers will have a look at it
ssss is offline   Reply With Quote

Old   September 6, 2015, 13:30
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
For future reference: http://www.openfoam.org/mantisbt/view.php?id=1831
wyldckat 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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 16:33
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 05:03
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 19:37.