How to install colloid package ?

Submitted by mytxii on Sun, 09/06/2015 - 13:52

Hello guys,

I want to use DLVO forces in my simulation model. Therefore I need to use the pair_style colloid and yukawa, I guess.
I have read the manual of LAMMPS (http://lammps.sandia.gov/doc/Section_packages.html), but I still don't know, how to install the package colloid.

I tried to download the colloid packages from LAMMPS (same version as LIGGGHTS) and copy the folder "COLLOID" to LIGGGHTS/src.
Then I typed "make yes-colloid" and "make g++". Afterwards I compiled LIGGGHTS and CFDEM, but the simulation doesn't work, because pair_style colloid is still unknown.

Do somebody know what goes wrong or can post a short step by step documentation - it would be very helpful ?

Thank you so much

Nils

Daniel Queteschiner's picture

Daniel Queteschiner | Mon, 09/07/2015 - 09:18

Did the compilation actually finish without any error messages? Did you use make clean-all to clean any old object files? Do you usually use make g++ to compile the LIGGGHTS code? The commonly used make command is make fedora.

linsel | Thu, 09/08/2016 - 07:47

Hi Daniel,

I have copy files (directory COLLOID, pair_yukawa.cpp and pair_yukawa.h) to LIGGGHTS-PUBLIC/src, and typed
make clean-all
make yes-colloid
make fedora
But pair_style colloid is still a "Invalid pair style" .
When I type make package-status, there is no "colloid" in the list as follow
---------------------------------------------------------------------------------------------------------------------
linsel@ubuntu:~/LIGGGHTS/LIGGGHTS-PUBLIC/src$ make package-status
Installed NO: package ASPHERE
Package.sh: line 7: cd: COHESIONMODELS: No such file or directory
Installed NO: package COHESIONMODELS
Installed NO: package MOLECULE
Installed NO: package PASCAL
Installed NO: package POEMS
Installed YES: package RIGID
src/fix_rigid.cpp and RIGID/fix_rigid.cpp are different
Package.sh: line 7: cd: SURFACEMODELS: No such file or directory
Installed NO: package SURFACEMODELS
Installed NO: package VORONOI
----------------------------------------------------------------------------------------------

What should I do to install package COLLOID for LIGGGHTS ?
Thanks a lot

mytxii | Tue, 09/08/2015 - 10:53

Hello Daniel,

thank you for your answer. I will try to use "make clean-all" and "make fedora" to compile LIGGGHTS.
If there are any errors, I will post the error messages afterwards.

Thank you

Nils

linsel | Thu, 09/08/2016 - 02:20

Hello Nils,

I have the same errors when installing colloid package. But it still show "Invalid pair_style" after these works:
Copy the package COLLOID and pair_yukawa.h and pair_yukawa.cpp to the src directory ;
make clean-all
make yes-colloid
make fedora

ckloss's picture

ckloss | Tue, 09/13/2016 - 15:18

Hey guys,

when using code from LAMMPS (which is not LIGGGHTS!) you'll have to be able to understand and port the code!

Best wishes
Christoph

saad2311 | Tue, 04/02/2019 - 15:35

I first copied the COLLOID from LAMMPS and then use "make auto" for LIGGGHTS compilation, the compilation went smooth without any error messages but LIGGGHTS still cant detect the pair_yukawa and all the files in COLLOID. I have peeked into the code as well some files e.g. like files in MOLECULE folder use the namespace of LAMMPS_NS which are bascially from LAMMPS they are compiled but not COLLOID.

cheers !
Saad

setare | Sun, 07/28/2019 - 10:51

Hey Saad,

Did you manage to solve the problem? Ifyes, can you help me at? I have the same problem in using colloid package in LIGGGHTS.

Regards,
Setare

saad2311 | Thu, 08/01/2019 - 11:40

Hey Setare,
My apologies as I have just seen your comment !

Regarding the COLLOID package from LAMMPS into LIGGGHTS yes, I managed to resolve the problem. ONE thing I was only interested in "pair_style_colloid", "pair_style_yukawa" and "pair_style_yukawa/colloid" chiefly I wanted to implement DLVO potential into my Sims. For that I figured out two ways in solving it, I'll surely tell you the most simplest one. I have used the routines from "Patch01DEC13" of LAMMPS and simply copy/paste the said pair_styles into LIGGGHTS/src and ran a compliation. This is so far working fine as mentioned I was only interested in those pair_styles regarding the entire COLLOID I'm not sure if this method works. The other way is a bit tricky one in that one has to first install additional packages in LAMMPS then build a Static LAMMPS library, link that library in LIGGGHTS and one also has to add some additional headers into the routines but that is highly specific to the machine one is building for.

Hope this helps in your case.

Cheers !
Saad