Simple way to implement contact duration

giuraso's picture
Submitted by giuraso on Tue, 03/22/2016 - 11:24

Hi All,

I want to extract information about contact duration and maybe I have found a really simple way to do it.

In cohesion_model_easo_capillary_viscous.h there is a history_value "contflag" that is used to understand if two particles have been in contact, such that the capillary force is created only after the contact occurs.

The contflag is set to 1 in case of contact, then set to 0 when the liquid bridge is broken. One can increment the contflag rather than setting to 1 and the condition still works.

contflag[0] = contflag[0] + 0.0;

In this way contflag carries the information of "how many time-steps the contact lasts for". Remember that liquid bridge force is active when there is overlap as well.
I have tested it for two particle collision and it works.

If the history_value is added into normal contact model it might work at the same way. It might be a good idea to have this feature in LIGGGHTS as the contact duration is really useful to study clustering, agglomeration, heat transfer etc...

My first question is:
Do you see any problem with this idea?

My second question:
How can I export the history value "contflag" using the dump local command?

I just want to remind you that the dump local command has some issues when used together with cohesion_model_*_capillary_viscous.
see http://www.cfdem.com/forums/error-when-compute-pairgranlocal-capillary-m...

Thank you.
Regards,
Giuseppe

ckloss's picture

ckloss | Mon, 04/25/2016 - 22:37

Hi Guiseppe,

the best way to calculate contact duration is to use an additional history value for the contact law which just adds "dt" every time-step of contact
The you can modify dump local/gran/vtk to output it!

Best wishes
Christoph

anandmds's picture

anandmds | Sat, 05/21/2016 - 06:29

hi,
Can you please tell where to add the "history value" ? Do we have to modify the code for the attribute "history" from the "src" folder and modify the "local/gran/vtk" also in a similar manner to get the contact duration ? Please help.

Regards
Anand

Anand.M
M.S. Mechanical Engineering,
I.I.T. Madras