How to derive particle drag force in a DEM simulation

Hello, developers,
I want to export the drag force of particles in DEM simulation, now I set three scalars des_usr_var (12:14) in drag_gs_des.f, but I found that the exported data are all 0 (the following figure). May I ask how this should be handled?
In fact, I have previously referred to the information to export the drag forces directly, which requires “des_explicitly_coupled = False”. After taht, I can get the particle drag force, but the calculation will always fail to converge soon.
Any possible help would be greatly appreciated!


pulsed_bed_quasi_2d_2024-12-31T235240.307409.zip (723.6 KB)

Hello,

So first you want to keep des_explicitly_coupled = True
Then you can go to calc_drag_des.f, there you can find FC(II,:) = FC(II,:) + DRAG_FC(II,:)
We include the drag force to contact force here so you can simply do something like this:

        DES_USR_VAR(II,12) = DRAG_FC(II,1)
        DES_USR_VAR(II,13) = DRAG_FC(II,2)
        DES_USR_VAR(II,14) = DRAG_FC(II,3)

This should save drag force to des_usr_var.

1 Like