Mass flow rate calculation issue for pure granular flow

test_mfr_update.zip (31.0 MB)

I re-ran the simulation providing side walls no slip condition.

Please check the average mass flow rate for the plane method and box method.

I attached the .csv file for both plane and box region."
PLANE_0.csv (5.3 KB)
BOX5.csv (7.8 KB)

I think the mismatch in average mass flow rate still persist even if I set walls.

A) I showed you how to compute the rate from the box monitor so that you can do this yourself.

B) Jeff uploaded a modified flowrate_des.f90, have you tried that?

plot

Here’s a comparison of the box method, the plane method from the 25.1 release, and the modified flowrate_des.f90 that Jeff uploaded earlier today. The data is a bit noisy but you can see that the new code tracks the rate as computed by the box method more closely.

The averages over the period 0.2s - 0.8s are:

Box:              0.0008958
Plane (orignal):  0.0009597
Plane (modified): 0.0008978

The modified plane method is within 0.2% of the box method. Note that we can not expect perfect agreement. Particle count in the box is effectively the integral of the flow rate across the plane. The box method is a true average rate over the time interval, since we’re comparing the box occupancy at the start and end of the interval, while the plane method is just an instantaneous average computed at discrete timesteps, so it is subject to some fluctuations. For comparison the discrepancy with the unmodified plane method is 7%.

I think you should be able to use the plane method with the modifed flowrate_des.f90, or the box method if applicable. The new flowrate_des.f90 will be in the next MFiX bugfix release, which should be coming out fairly soon. In the meanwhile, you can copy this file to your project directory and build a custom solver if you want to use the new code.

Finally, here’s another version of that same plot with some light smoothing applied to the data (moving window average) which makes the correlation between the modified plane and box rates more apparent:
plot2

Thanks for the modified flowrate_des.f90

I am using mfix 24.4

I copied the code in the .txt file and pasted in the project directory with the same file name ‘flowrate_des.f90.txt’.

I need to just build the solver and run?

I see no monitor_flowrate_des for the plane monitoring

You should not rename the file, copy it as flowrate_des.f90 (no extra .txt) into you project directory. I used 25.1, but I believe it should also work with 24.4 (I didn’t test though). Then you need to build the solver and run using the “project solver”, not the “default solver”:

monitor_flowrate_des is the name of the routine. It is not a keyword so there won’t be anything shown in the keyboard browser.

okay thanks.

Can this file flowrate_des.f90 be used in any Mfix DEM simulation for monitoring mass flow rate through plane or box?

This can be used in any Mfix DEM simulation for monitoring mass flow rate through plane. By definition a mass flow rate can only be computed through a plane, not a box. You can indirectly deduce the flow rate by looking at the rate of change of the number of particles in a box, like you did, but this is using a different monitor (the sum monitor).

As commented earlier, the plane method is more flexible but the box method (comparing box occupancy at start and end of a time interval) will give you a more accurate average flow rate over the given interval, since the plane method is an instantaneous estimate taken at discrete times, and therefore subject to fluctuations, while the box occupancy is the true continuous-time integral of the flow rate across the boundary of the box.

Note that the updated monitor code is included in the new 25.1.2 version. Thank you for your help in identifying and fixing this issue.