HI Hello friends, I am new to this and would like to know how to install LIGGGTHS in ubuntu 12.04 ?
Thanks!! :D
A project by DCS Computing and CFDEMresearch
This website uses cookies to ensure you get the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies. This website uses cookies. By continuing to browse the site you are agreeing to our use of cookies. More info
ckloss | Fri, 08/30/2013 - 15:24
Hu jobito,
Hu jobito,
you can follow this installation guide:
"Official" INSTALLATION TUTORIAL (for Fedora)
http://cfdem.dcs-computing.com/?q=node/13
(it's based on fedora, but it's very similar in Ubuntu)
Cheers
Christoph
PaulWinkler | Fri, 08/30/2013 - 16:41
Hi,
Hi,
you may also use my more detailed tutorial for Ubuntu. If you want to use the package right out of the box, 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. We start at point 5, the first four describe the installation of ParaView, GNUPlot, Povray and Voro++.
## 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 Compiling Liggghts with jpg support
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
check your vtk version and change vtk version to "vtk-5.x" in line 68 if necessary
save and close gedit
sudo make clean-all
sudo make ubuntuVTK
after successful compiling liggghts:
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
Regards,
Paul