Hi,
With the mfix-21.1.0 update, I decided to test the new implemented drag models. When I tested the Gao drag model it gave me error in the fluid_bed_tfm_2d and fluid_bed_tfm_3d tutorials. To solve this bug, I propose to modify drag_gs.f: 1755 h3d = hInf * (ONE - exp(-alphaCoeff*(vSlipStar-VZero)**powerVal))
by the following
Thanks for testing the drag. Can you provide me more information on how the error happened? And can you also print out the values of some related variables when the error shows up: ep_g, alphaCoeff, vSlipStar, VZero, powerVal?
Hi and thank you very much for answering. I want to print the values of some related variables so I can help development, I am trying (WRITE or PRINT) but still can’t get the values to show up in the stdout or mfix message. How could I do that?
I literally opened both tutorials (fluid_bed_tfm_2d or fluid_bed_tfm_3d), just changed the drag model and run with default solver.
I managed to extract data from the first iteration of the fluid_bed_tfm_2d tutorial and it came out 420 results where Pot> = 73.6827d0, out of a total of a 20x100 mesh.
It can be said that alphaCoeff is the cause of the divergence
Thanks JPGD. I run without GUI, they are fine, both 2D and 3D run a long time without show any issue.
While When I run with GUI, indeed we reproduced the issue you found.
Jeff pointed out the reason:
The issue comes from a floating point exceptions (fpe), here specifically an overflow. The GUI solver from the GUI traps fpe. You can build the batch solver to track fpes with:
And it should reproduce the error with the batch solver. The overflow occurs in the calculation of h3d in the drag law. The overflow occurs if the argument becomes larger than approximately 700.
We will remedy this issue based on the suggestion by you in the next release. Thanks.