schrummy14 / LIGGGHTS_Flexible_Fibers

This is a modified version of LIGGGHTS that includes granular bond formulations. The original version of LIGGGHTS produced by CFDEM can be found here: https://github.com/CFDEMproject/LIGGGHTS-PUBLIC
GNU General Public License v2.0
45 stars 34 forks source link

Problem in fix_bond_propagate_gran.cpp:125 #1

Closed DanielBorgesOliveira closed 5 years ago

DanielBorgesOliveira commented 5 years ago

I am using your code to run a study case and I receive this error:

ERROR on proc 0: Failed to operate on granular bond history during copy i2 (../fix_bond_propagate_gran.cpp:125)

What can I do to resolve the issue?

I did some improvement in the code too and would like to share it with you.

Thank you very much.

schrummy14 commented 5 years ago

Hello, Sorry for the error you are receiving. Could you send me your input file or an equivalent input file? The error by itself does not give me much to go on.

The error indicates that the bond cannot find its pair of spheres. This can only happen if you are using newton_bond (I have not tested this) or if both spheres are on the same processor.

On Mon, Sep 16, 2019, 1:52 PM DanielBorgesOliveira notifications@github.com wrote:

I am using your code to run a study case and I receive this error:

ERROR on proc 0: Failed to operate on granular bond history during copy i2 (../fix_bond_propagate_gran.cpp:125)

What can I do to resolve the issue?

I did some improvement in the code too and would like to share it with you.

Thank you very much.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/schrummy14/LIGGGHTS_Flexible_Fibers/issues/1?email_source=notifications&email_token=AGARTE2KMXL5Y6XBYG2J26LQJ7IWJA5CNFSM4IXF6X72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HLVFIVQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AGARTE6Z525LQISE4OCWJADQJ7IWJANCNFSM4IXF6X7Q .

DanielBorgesOliveira commented 5 years ago

Bellow is file of the simulation.

example.tar.gz

I wrote the code in a package form and made some minor modification. Please, if you will run my example use this new source files and recompile LIGGGHTS.

source_code.tar.gz

I discovery that the error appear if I set the parameter "bond_youngs_modulus" of the command "bond_coeff" above 10e7. If I set this parameter bellow this value the error disappear.

Thank you very much.

schrummy14 commented 5 years ago

Hello, It appears that you are using too large of a timestep. For the bonded model and NO bond damping, the maximum dt = 1/w = sqrt(m/K) = sqrt((4 r rho lb)/(3 Y)) where Y = Young's Modulus (Pa) r = Particle Radius (m) lb = Bond Length (Equilibrium) rho = Particle Density (Kg m^(-3)

Once damping is added, this time step can drop drastically. Some testing has shown the empirical relationship (dt <= 1/((1+2.87beta)w) where beta = local bond damping coefficient that is used.

dt_ray = 2.5153e-04 For your system (Y_bond = 10e7), it appears that the critical time step is == dt < 2.9664e-04 Y_bond = 10e8 >> dt < 9.3807e-05 Y_bond = 10e9 >> dt < 2.9664e-05 Y_bond = 10e10 >> dt < 9.3807e-06

DanielBorgesOliveira commented 5 years ago

Hello,

Looks like this solved the problem.

Thank you very much.