Adding a static library in LIGGGHTS

Submitted by saad2311 on Mon, 03/18/2019 - 11:26

Hi everyone !

As my model requires to include DLVO Forces, I have to include pair_style yukawa/colloid into LIGGGHTS. For this reason I have followed previous Forum threads:
https://www.cfdem.com/forums/how-install-colloid-package
and
https://www.cfdem.com/forums/adding-new-force

In order to include LAMMPS library, I complied (using make mode=lib) LAMMPS as static library (liblammps_ubuntu.a). Is it possible to make/build LIGGGHTS inlcuding this new library which I complied ?

Pardon if my question is an obvious one, I'm just a novice in calling/linking in additional libraries.

Thanks alot.
Saad

RussellHolt | Fri, 08/13/2021 - 16:41

Hi Saad

I am also interested in the possibility of using a colloid package (pair style lubricate) from LAMMPS within LIGGGHTS and would like to avoid rewriting it in order to compile. Were you successful in implementing the yukawa/colloid packages by linking the static LAMMPS library? If so, could you please let me know the process you undertook to do this, or perhaps share any files as an example?

Thanks for your help!
Russell