[update] Setup LIGGGHTS 3.0.1 on Ubuntu/Mint

PaulWinkler's picture
Submitted by PaulWinkler on Fri, 04/18/2014 - 13:09

Hi,

since version 3.0.1 was released and there are some changes (http://www.cfdem.com/node/42), I updated the basic setup tutorial for Ubuntu(>12.04)/Mint(>14) and maybe other distributions. There is jpg and png support for dump image and back again - mpi support. It's a basic install, without additional packages and tools. The syntax highlighting for gedit was updated to LIGGGHTS version 3.x.


## Liggghts 3.0.1, LPP, Syntax-Highlighting, Paraview 4.0.x on Mint 16 amd64 (2014-17-04)

## 1 Install Liggghts 3.0.1 by compiling
## 1.1 Install Packages
sudo apt-get install git libvtk5-dev libeigen2-dev libopenmpi-dev
which mpirun
- /usr/bin/mpirun comes up?
which mpic++
- /usr/bin/mpic++ comes up?
## 1.2 Get Liggghts via Git
cd ~
git clone https://github.com/CFDEMproject/LIGGGHTS-PUBLIC
## 1.3 Compiling Liggghts with jpg and png support
cd $HOME/LIGGGHTS-PUBLIC/src
- if you need extra packages install with make yes-packagename
gedit /$HOME/LIGGGHTS-PUBLIC/src/MAKE/Makefile.ubuntuVTK
- add in line 28:"-DLAMMPS_JPEG -DLAMMPS_PNG"
- add in line 59:"-I/usr/include"
- add in line 61:"-ljpeg -lpng"
- save and close gedit
make clean-all
make ubuntuVTK
sudo ln -s /$HOME/LIGGGHTS-PUBLIC/src/lmp_ubuntuVTK /usr/bin/liggghts
liggghts -h
- Liggghts comes up, telling version, compiling date, installed options etc.

## 2. Install LPP for postprocessing
cd ~
sudo apt-get install python-numpy
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

## 3. Install Syntax Highlighting for gedit
cd ~
wget http://www.cfdem.com/system/files/liggghts3.lang_.tar_.gz
tar -zxvf liggghts3.lang_.tar_.gz
sudo mv $HOME/liggghts3.lang /usr/share/gtksourceview-3.0/language-specs

## 4. Install ParaView 4.0.1
sudo apt-get install paraview

Thanks for your advises and recommandations.

Regards,
Paul

Edit: In the former version there was the package voronoi used, which needs voro++ to be installed.

franciscohgt | Tue, 05/13/2014 - 16:55

Hi

I am using Ubuntu 14.04, VTK 5.10 (I can't use 5.8 becouse compile filed), Liggghts 3.0.1

in the next step I have the following error:

## 1.3 Compiling Liggghts with jpg and png support
cd $HOME/LIGGGHTS-PUBLIC/src
make yes-voronoi
if you need extra packages install with make yes-packagename
gedit /$HOME/LIGGGHTS-PUBLIC/src/MAKE/Makefile.ubuntuVTK
- add in line 28:"-DLAMMPS_JPEG -DLAMMPS_PNG"
- add in line 59:"-I/usr/include"
- add in line 61:"-ljpeg -lpng"
- save and close gedit
make clean-all
make ubuntuVTK
(failure in this step)
|
----------> In file included from ../compute_voronoi_atom.cpp:21:0:
../compute_voronoi_atom.h:24:21: fatal error: voro++.hh: No existe el archivo o el directorio
#include "voro++.hh"
^
compilation terminated.
make[1]: *** [compute_voronoi_atom.o] Error 1
make[1]: se sale del directorio «/home/francisco/LIGGGHTS/LIGGGHTS-PUBLIC/src/Obj_ubuntuVTK»
make: *** [ubuntuVTK] Error 2

My question is: is the version of vtk problem? or something else?

Thanks, Regards

Daniel Queteschiner | Wed, 05/14/2014 - 14:42

I suppose you don't really want to use
make yes-voronoi
If you indeed need that package, the Voro++ library must be present on your system (see the corresponding README in the package folder).

rich_st | Tue, 07/12/2016 - 22:33

Dear all,
on my Ubuntu 14.04 when copying the language xml-file liggghts3.lang into the above given directory, i am not able to choose the LIGGGHTS highlighting in gedit. I am actually able to choose it when using the LIGGGHTS 2 language file from here: http://www.cfdem.com/gnome-syntax-highlighting
Does anybody face the same problem?
I'm not at all an expert in xml. There are no differences in the files except some new and some deleted expressions.

Regards,
sebastian