installation LIGGGHTS on Ubuntu 10.04

Submitted by atnaseri on Wed, 01/25/2012 - 18:27

Hi

I'm a new user , I would like to know the steps on how to install the liggghts properly on Ubuntu. I've downloaded the tar package from the download section into a folder untar the package. The instruction given in the download section for the installation of the stable version does not work for me.

Thanks

Philippe's picture

Philippe | Thu, 01/26/2012 - 08:36

Hi,

which installation instruction did you follow? Did you try to install the Ubuntu packages, did you use git or have you just downloaded the tarball? Can you post more precisely what you did and where the error occurred?

greetings
Philippe

Ehsanizadi | Wed, 08/07/2013 - 17:07

Hi,

Could anyone can tell me the instructions for installing LIGGGHTS on Linux Mint?
I tried the instructions mentioned on LIGGGHTS website (which is for Fedora), but it was not successful.

Thank you in advance.
Ehsan

PaulWinkler's picture

PaulWinkler | Thu, 08/08/2013 - 17:57

Hi,

add http://ppa.launchpad.net/liggghts-dev/ppa/ubuntu as package repository and install liggghts-dev. If it doesn't run or you want to use packages which are not integrated by default you could compile by your own. Since Mint and Ubuntu are no total strangers, you may try this setup tutorial for Ubuntu, we start at point 5.

## 5 Install Liggghts 2.3.6 by compiling
## 5.1 Install Packages
sudo apt-get install libvtk5-dev libeigen2-dev libopenmpi-dev g++ git-core
which mpirun
/usr/bin/mpirun comes up?
which mpic++
/usr/bin/mpic++ comes up?
## 5.2 Get Liggghts via Git
git clone https://github.com/CFDEMproject/LIGGGHTS-PUBLIC.git $HOME/LIGGGHTS-PUBLIC
## 5.3 Get LAGUERRE package for Liggghts
cd $HOME/LIGGGHTS-PUBLIC/src
wget http://paulew.de/LAGUERRE.tar.gz
tar -zxvf LAGUERRE.tar.gz
## 3.4 Compiling Liggghts with LAGUERRE and jpg support
cd $HOME/LIGGGHTS-PUBLIC/src
sudo make yes-laguerre
if you need extra packages install with sudo make yes-packagename
gedit /$HOME/LIGGGHTS-PUBLIC/src/MAKE/Makefile.ubuntuVTK
add "-DLAMMPS_JPEG" in line 28
add "-I/usr/include" in line 59
add "-ljpeg" in line 61
change vtk version to "vtk-5.8" in line 68
save and close gedit
sudo make clean-all
sudo make ubuntuVTK
sudo ln -s /$HOME/LIGGGHTS-PUBLIC/src/lmp_ubuntuVTK /usr/bin/liggghts
liggghts
Liggghts comes up, tellinig version, compiling date etc.
Ctr+d


## 6. Install LPP for postprocessing
sudo apt-get install python-numpy
sudo git clone https://github.com/CFDEMproject/LPP.git $HOME/LPP
gedit ~/.bashrc
add alias lpp="python $HOME/LPP/src/lpp.py"
open new Terminal -> lpp dump.examplefilename


## 7. Install Syntax Highlighting for gedit
cd ~
wget http://cfdem.dcs-computing.com/?q=system/files/liggghts.lang_.tar__0.gz
visit http://cfdem.dcs-computing.com/?q=node/701 if filename chenged
tar -zxvf *liggghts.lang_.tar__0.gz
sudo mv $HOME/liggghts.lang /usr/share/gtksourceview-3.0/language-specs

Please let me know if that works, I am on Ubuntu 12.04 LTS and 13.04, but will change to Mint.

Regards,
Paul

Ehsanizadi | Fri, 08/09/2013 - 15:32

Hi Paul,
Thank you for providing instructions.
I followed the instructions, however, I got an error. After I typed "sudo make ubuntuVTK", In the end, I got this message:
compute_laguerre_atom.cpp:31:21: fatal error: voro++.hh: No such file or directory
compilation terminated.
make[1]: *** [compute_laguerre_atom.o] Error 1
make[1]: Leaving directory `/home/ehsan/LIGGGHTS-PUBLIC/src/Obj_ubuntuVTK'
make: *** [ubuntuVTK] Error 2

Nonetheless, when I type "liggghts" it comes up, telling the version as well as compiling date!

Is it installed correctly?

Thank you for your help again.

Regards,
Ehsan

Ehsanizadi | Fri, 08/09/2013 - 15:49

Well, I am now sure that it is not installed correctly, because I cannot run the examples. When I try to run an example, I got this message:
"
LIGGGHTS 1.5.3 based on lammps-10Mar10
Created orthogonal box = (-0.5 -0.2 -0.2) to (0.5 0.2 0.35)
1 by 1 by 1 processor grid
ERROR: Illegal pair_style command
"

Anyone can help?

PaulWinkler's picture

PaulWinkler | Sat, 08/10/2013 - 09:46

Hi,

sorry, you don't need the laguerre / voro package. Enter 'sudo make no-laguerre' in the src dir, that will fix the voro++ error.

It seems you have installed Liggghts from another source. 1.5.3 is an old version, the examples from the current version (2.3.6) you got via git won't run. remove liggghts 1.5.3 with 'sudo apt-get remove liggghts-dev' and try to compile without the laguerre package, it's undocumented anyway.

Regards,
Paul

Ehsanizadi | Sat, 08/10/2013 - 20:32

Hi,

It worked Paul, new version of Liggghts has been installed.
I have a question on LPP:
after installation, I go to LPP folder and to a folder containing dump files (e.g. ... /LPP/examples/files/) and open terminal there. when I type "lpp dump.bond" (I tried the "bond" example), I will get this:
"
starting LIGGGHTS memory optimized parallel post processing
chunksize: 8 --> 8 files are processed per chunk. If you run out of memory reduce chunksize.
Working with 2 processes...
calculating chunks 1 - 1 of 1
dump scaling status is unknown
wrote 1 granular snapshots in VTK format
time needed: 0.133347988129 sec
"

Do you know how to get graphical output? (I know my question may be silly, but I am new to this)

And another question is, how do yo suggest to learn using Liggghts? is there any tutorial or step-by-step instructions for it? Or where to start?
Actually I don't even know where to write codes! and how to run them.

Thank you in advance.
Ehsan

PaulWinkler's picture

PaulWinkler | Sat, 08/10/2013 - 23:24

Hi,

the tool lpp has no GUI, that's why it fits so good to Liggghts ;-)
The problem are the dump files, how are they created? Normally the dump is already scaled and lpp can write to vtk format which can be processed in ParaView. If you build the ubuntuVTK you have various possibilities to dump direct in vtk, but the classic way is lpp.
How to learn Liggghts? There is no real manual, there are a lot of examples and tutorials. Since the program is used on a wide range of problems it's more an tool box (most of the “users” extend it with own code) than an ready to use product with given solutions. The right way depends on what you want to do. Take an easy example from the current Liggghts version, e.g. chute wear, there is a lot of different stuff used and it run quite quickly. There is an online manual ( http://nf.nci.org.au/facilities/software/LIGGGHTS/doc/Manual.html ), but that's not up to date. You can also use the pdf manual hidden in the doc directory ( manual.pdf ) and there is a best practise how to by cstolz lost in the deeps of the forum ( http://cfdem.dcs-computing.com/?q=node/1689 ). You can use Lammps stuff also (not 100% compatible). But I can tell, you will spend a lot of time by trying, reading and scripting, maybe wondering.
You can start scripts by 'liggghts -in in.script'.

Best wishes,
Paul