CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Bugs

TwoPhaseEulerFoam Bug

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   February 19, 2008, 19:16
Default Hello guys, I have found a
New Member
Alex Londono
Join Date: Mar 2009
Location: Medellin, Antioquia, Colombia
Posts: 9
Rep Power: 10
alondono is on a distinguished road
Hello guys,

I have found a minor mistake inside the code, in the KineticTheoryModel.C file, when the equilibrium switch is on, the model uses the algebraic granular temperature equation as it was proposed by Syamlal (1993), well the mistake can be found in line 321:

The original code states:

volScalarField l3 = 4.0*K4*alpha*(2.0*K3*tr2D + K2*tr2D);

But, if the original equation is reviewed, you should notice that the line must be:

volScalarField l3 = 4.0*K4*alpha*(2.0*K3*trD2 + K2*tr2D);

The equation can be checked in the MFIX Documentation and also in the B.G.M. Van Wachem PhD. Thesis.

By the way, does anyone know about new developments of this code in newer releases of OpenFOAM?


Alex L.
alondono is offline   Reply With Quote

Old   February 19, 2008, 21:01
Default Bug confirmed :-) Here ther
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,911
Rep Power: 28
alberto will become famous soon enoughalberto will become famous soon enough
Bug confirmed :-)

Here there's the fixed file.


With kind regards,

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:
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


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
TwoPhaseEulerFoam Documentation paul OpenFOAM Running, Solving & CFD 52 November 1, 2017 11:25
TwoPhaseEulerFoam sara OpenFOAM Running, Solving & CFD 2 November 6, 2008 20:26
Bug in twoPhaseEulerFoam alberto OpenFOAM Bugs 2 May 20, 2008 21:25
TwoPhaseEulerFOAM application hemph OpenFOAM Bugs 0 November 16, 2006 08:27
TwoPhaseEulerFoam newbee OpenFOAM 0 March 27, 2006 08:41

All times are GMT -4. The time now is 03:06.