SuperDEM drag in MFiX 26.1.2: five corrections

Thank you for the patches of 13 October in the des_unpack_parcross thread. I had found the two LSD problems that 0005 fixes, and tests of 26.1.2 with 0001-0009 agree with it:

  • Two rounded cubes after an elastic, frictionless collision spin at 178.2 and 144.1 rad/s (4991 and 4898 rad/s without the patches; LIGGGHTS-PUBLIC 3.8 gives 175.8 and 144.8).
  • A pair of cubes of 2500 and 1000 kg/m³ rebounds with a restitution of 0.898 for an input of 0.9 (0.148 without the SQRT(M_EFF) factor; LIGGGHTS 0.898).

I also found five problems in the superquadric drag that the patches do not touch. The attached series 0010-0015 fixes them. It applies after 0001-0009 on 26.1.2 without offset or fuzz (patch -p1 in the directory that holds model/).

  • 0010: a flow along the particle’s z axis gave every shape a crosswise sphericity of 1 and the area of the volume-equivalent sphere. A cylinder with its axis along the flow got the drag of another shape, and a tilt of 1 degree changed its slip by 89 percent.
  • 0011: the projected area of a cuboid had a lower bound, the mean of its three face areas: 4.5 instead of 3 mm² for a 3 x 2 x 1.5 mm box seen along its 3 mm edge.
  • 0012: the Holzer-Sommerfeld force multiplied C_d by the projected area, although C_d already contains the orientation through the crosswise sphericity, and Holzer and Sommerfeld refer it to the volume-equivalent sphere.
  • 0013: Re used the bounding diameter instead of the volume-equivalent diameter, 1.38 to 1.59 times larger for the shapes we tested.
  • 0014 (DES caller) and 0015 (TFM caller): the orientation came from the fluid velocity instead of the slip, so in a fluid at rest every shape and orientation had a crosswise sphericity of 1.

Each patch message gives the reason and the test numbers. How we tested:

  • 21 one-particle decks (cuboid, cylinder, spheroid and sphere; both SQP drag types; upflow and fluid at rest), run with the serial solver on seven builds, from 26.1.2 with 0001-0009 to the full series (147 runs). The terminal slip equals an independent evaluation of the coded formulas to 4.2e-5 (relative). The only exceptions are the fluid-at-rest runs before 0014, at up to 4.7e-4, where the orientation comes from the small fluid velocity the particle induces.

  • The sphere is unchanged, except for a rounding difference of at most 3e-8 m/s after 0013.

  • The same decks with DMP (3 ranks along the fall) and SMP (4 threads) builds, before and after the series (84 runs): SMP is identical to serial in every output frame. With the full series, DMP agrees with serial to 1.7e-5 in the terminal slip, and in 10 of the 21 runs the particle crosses a rank boundary. The fb_sqp_particle_input tutorial, run to 0.1 s with the full series in DMP and serially, keeps all 72 particles and gives the same mean particle height and speed.

  • All builds (serial after each patch, DMP and SMP) compile with gfortran 13.1 without warnings.

  • 0015 changes no DES result. It compiles, but

    SuperDEM_drag_patches_0010-0015.zip (44.2 KB)

    we did not run a TFM case with an SQP drag type.

DRAG_SQP_GIDASPOW_ganser also takes Re from the bounding diameter and, in its dilute branch, refers the force to the projected area, but no drag type selects it in 26.1.2, so I left it unchanged.

The zip holds the six patches, the 21 decks, the results of the serial and parallel runs, the evaluation script (sqp_drag_check.py, numpy only) and a README.

These fixes have been added to MFiX 26.1.3 (except for patch 15, which doesn’t make sense - SQP drag models don’t apply to TFM and should be rejected, which they now are).

Thanks again @ebreard6