adding a new force

Submitted by Mac-grad on Mon, 07/16/2012 - 04:42

Hi there,

I need to add a new force model to account for DLVO interactions between particles, with eachother and the walls. I need that to work with coupling of CFDEM as well. can you please help me how to start and where should I look for some hints?
thanks alot,

Philippe's picture

Philippe | Mon, 07/16/2012 - 07:46

Hello,

you will need to write a new pair style that performs your interactions. Chapter 8 of the documentation would probably be a good starting point for your plans.

best,
Philippe

ckloss's picture

ckloss | Mon, 07/16/2012 - 08:30

Have a look at pair_style yukawa/colloid and pair_style colloid and the corresponding wall styles, they might already do what you want - or be at least a good starting point

Christoph

Mac-grad | Mon, 07/16/2012 - 17:00

thanks for the help. yukawa/colloid is a good approximation for my case, however, I can not use atom style colloid, or hybrid colloid granular, and I get errors. does it mean I need to install colloid package and then make LAMMPS again? thanks